Hi,
This happens for the resource not logged in or in Idle mode and the version 6.x permit to assign the process before was anyway blocked.
could be useful this approach:
cmd.exe /c AutomateC.exe /run .....
the return parameter, etc. are returned but is not in wait for the completion
otherwise if you need to wait to start a second process (i.e. after the Login was completed):
echo wait 150 seconds
timeout /t 150 /NOBREAK > NUL