QlikView/ Qlik Sense throws the error The handle is invalid when executing an external command in the script.
The parameter EXECUTE command is referring to an invalid external program. A quick test to see whether the handle is valid is by opening a Command Prompt under the user running Qlik Sense Engine Service, QlikView Distribution service or QlikView/ Qlik Sense Desktop and try running the part after EXECUTE.
For more details on the EXECUTE command, see: Qlik Sense Execute
Environment:
Qlik Sense Enterprise on Windows
QlikView