OK so finally i got a script written. what i will be doing is put it into a GPO and then when th user logon it automathically runs itself with no user prompt; essentially i want it to be in passive mode, and i need it to reboot after the script too..... When i debug this scrip it gives me an 'Invalid function call error" Please help me......

Break off

If Exist ("C:\Program Files\Pivotal\Relation") = 0

MessageBox ("Please wait while Relationship is uninstalled")

Shell 'C:\WINDOWS\uninst.exe-y -f"C:\Program Files\Pivotal\Relation" >NUL 2>NUL /passive'

Sleep 6

Else

? "Error Code = " @Error " Error Details = " @Serror

EndIf