PowerShell#

Executes a specified PowerShell command. This is equivalent to running PowerShell -NoP -ExecutionPolicy Bypass -NonInteractive -C "<command>".

Required Parameters#


Paramater

Description

Type

command

Specifies the command to be run.

string

Optional Parameters#


Paramater

Description

Type

Default

exeDir

Creates the PowerShell instance with the Playbook executables folder as its working directory.

bool

false

runas

Specifies what user the process should be run as.

Enum:
currentUser
currentUserElevated
system
trustedInstaller

trustedInstaller

timeout

Specifies a timeout for the command, where it will kill the process and report an error if the timeout is reached.

integer

None

wait

Specifies whether or not to wait for the PowerShell instance to exit.

bool

false