Moderator, your sample code jumps from the Exist command straight to the ? $programpath + " Does not Exist" line when i attempt to debug it...i guess it should go thru all required steps in debug mode but it's not happening here....i appreciate all your help so please keep them coming....

$programpath="C:\Program Files\Pivotal\Relation\"
If Exist($programpath)
$rc = MessageBox("Please wait while Relationship is uninstalled","ESI INT'L", 10, 0, 1)
Shell 'C:\WINDOWS\uninst.exe -y -f"C:\Program Files\Pivotal\Relation" /passive' Sleep 6
$rc = Shutdown("", "System is being rebooted to enable new settings.", 30, 0, 1)
Else
? $programpath + " Does not Exist"
EndIf