Run PowerShell
PowerShell スクリプト(インライン)または .ps1 ファイルを実行し、出力を取得します。
プログラム・プロセスRunPowerShellWindows専用
概要
PowerShell スクリプト(インライン)または .ps1 ファイルを実行し、出力を取得します。
Run a PowerShell script (inline) or a .ps1 file and capture its output.
パラメータ
| パラメータ | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
| PowerShell script | multiline | 任意 | Inline PowerShell. Ignored if a .ps1 file is given below. 例: Get-Date 変数に対応 | |
| Script file (.ps1) | file | 任意 | Optional. If set, this file is run instead of the inline script. 例: C:/scripts/task.ps1 変数に対応 | |
| Arguments | string | 任意 | Passed to the .ps1 file (only used with a script file). 変数に対応 | |
| Store stdout in | variable | 任意 | 例: output |