That makes sense as your workdir will be the scriptdir and thus not able to find the commands unless the PATH is set correctly. So set the workdir in the Run command and you should be in business. Runwait(@ComSpec & ' /K "' & @ScriptDir & 'dataBootIntoFastboot.bat"', @ScriptDir & "data", @SW_SHOW)