This error generally occurs when the script is held up waiting for a process that does not return a value, for example, waiting for the result from running a shortcut link.
To correct this error
-
Execute the program directly instead of using a shortcut.
-
Check the shortcut link to be sure it is still current.