PowerShell#
Executes a specified PowerShell command. This is equivalent to running PowerShell -NoP -ExecutionPolicy Bypass -NonInteractive -C "<command>"
.
Required Parameters#
Paramater |
Description |
Type |
---|---|---|
|
Specifies the command to be run. |
string |
Optional Parameters#
Paramater |
Description |
Type |
Default |
---|---|---|---|
|
Creates the PowerShell instance with the Playbook executables folder as its working directory. |
bool |
false |
|
Specifies what user the process should be run as. |
Enum:
|
|
|
Specifies a timeout for the command, where it will kill the process and report an error if the timeout is reached. |
integer |
None |
|
Specifies whether or not to wait for the PowerShell instance to exit. |
bool |
false |
|
Allows control over how specified exit codes should be handled.
|
dictionary |
None |