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.
Parameter | Type | Required | Position | Default Value | Summary |
---|---|---|---|---|---|
Script | string | ✔ | 1 | The script to run | |
Variables SetVariables WithVariables | entity | 2 | No variables passed to the script | List of input variables and corresponding values. | |
Input InputStream | array<entity> | 3 | No input stream | Input stream, used to pipeline data to the Script. This stream is exposed via the automatic variable $input. |