Run PowerShell

PowerShell スクリプト(インライン)または .ps1 ファイルを実行し、出力を取得します。

プログラム・プロセスRunPowerShellWindows専用

概要

PowerShell スクリプト(インライン)または .ps1 ファイルを実行し、出力を取得します。

Run a PowerShell script (inline) or a .ps1 file and capture its output.

パラメータ

パラメータ必須既定値説明
PowerShell scriptmultiline
任意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
変数に対応
Argumentsstring
任意Passed to the .ps1 file (only used with a script file).
変数に対応
Store stdout invariable
任意
: output

その他のプログラム・プロセスコマンド

面倒な作業を自動化しませんか?

今すぐ10日間の無料トライアルを開始。カードも契約も不要です。