Frends.PowerShell.RunCommand / 1.2.0
Summary
Runs one PowerShell command with parameters on the agent and returns its output, error stream and log separately. A session can be reused across Tasks so state carries between them.
Typical use — single administrative commands on Windows, where the separate error stream is what lets a Process tell a warning from a failure
Input parameters.
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| Command | String |
– | Example-Command |
The PowerShell command to execute |
| Parameters | PowerShellParameter[] |
– | [ foo, bar ] |
Parameters for the command, provided switch parameters need to have a boolean value |
| LogInformationStream | Boolean |
False |
false |
Should the information stream be logged. If false, log will be an empty string. If set to true, a lot of string data may be logged. Use with caution. |