PowerShell as a job
Accessing parameters, coming from an order or a job, by environment variables makes it easy to use a generic job for executing PowerShell scripts. The order parameters or job parameters have to specify the name of the script and some more parameters that will be passed to the PowerShell script.
<monitor> used in this example is required for parameter substitution of the order parameters.
- How to execute a PowerShell script with JobScheduler
- How to get the exit code of a PowerShell script
- How to pass parameters from JobScheduler to a PowerShell script
- How to pass parameters to subsequent jobs in a job chain
- Example for a generic shell job passing the shell script to execute as a job parameter
- Example for control of the process flow of a job chain by exit codes