Skip to main content
Version: v0.16.0

PwshRunScriptAsync

Alias:PwshRunScriptAsync, PwshRunAsync, PowerShellRunAsync, PowerShellRunScriptAsync

Output:Array<T>

Executes a powershell script and returns any results written to the pipeline as an entity stream. Running a script asynchronously allows for input streaming. Note that the script only runs when the output of this Step is read.

ParameterTypeRequiredPositionDefault ValueSummary
Scriptstring✔1The script to run
Variables
SetVariables
WithVariables
entity2No variables passed to the scriptList of input variables and corresponding values.
Input
InputStream
array<entity>3No input streamInput stream, used to pipeline data to the Script. This stream is exposed via the automatic variable $input.