Whenever doing tests of scripts and executions of exe files remember to run this as System account.
For example has these tools being run without erros during test and verification.
Scanstate.exe
AemTestApplication.exe
Use psexec.exe and the command:
psexec -s -i cmd.exe