To run a powershell job in Skybot the command line would look like this:

powershell.exe -command c:\temp\test.ps1

The powershell.exe and -command needs to precede the script.

Below is a link describing how to schedule a powershell scripts:

Powershell send a 0 exit code no matter what. Here is a command to add to the script to get it to send a 1 for a failure:  $script:ErrorActionPreference='Stop'


I added this line to my ps script and it passes a 1 when it fails:





Found the information here: