Executes a supplied PowerShell command.

Parameter In/Out Description Other Info
PowerShell command to execute In The PowerShell command, with any parameters, to be executed.
Log output level In Choices: Minimal, Verbose
The level of execution detail you want to appear in the log.
Default: Minimal
ExitCode Out The exitcode returned by the process.
OutputText Out The output text created by the process.

(Italics = required parameters)

Notes

The module [Shell] PowerShell Command allows a step in the job to execute a single PowerShell command, or run a .ps1 PowerShell script.

Article Details
Article
Q100107
Published
2018-01-26
Last Updated
2023-06-28
An unhandled error has occurred. Reload 🗙