Run PowerShell Command
Executes a user provided PowerShell script.
The script is executed using PowerShell Core, so Windows-only features may not be available.
If you want to use Windows features in PowerShell, you can execute commands on a remote Windows machine using:
note
If there's an error in a command in the middle of the script and the last command succeeds, the entire action will succeed, not revealing that some command may have failed.
Parameters
Parameter | Description |
---|---|
Code | PowerShell code to execute in the script. |