I really don't have a good answer for this one
[70:24] A system error occurred when starting the target script or an agent module. The system error code reported is 193 and the message resolves to '[193] %1 is not a valid Win32 application. '.
However, for this:
when I just add if "%SMEXIT%"=="0" into my batch file I get error: the syntax of the command is incorrect.
I think that the problem is the % symbols. Try taking those out to see if it makes any difference
when I just add if "SMEXIT"=="0" into my batch file I get error: the syntax of the command is incorrect.