Run PowerShell

Chạy script PowerShell (inline) hoặc file .ps1 và ghi lại output.

Chương trình & tiến trìnhRunPowerShellChỉ Windows

Công dụng

Chạy script PowerShell (inline) hoặc file .ps1 và ghi lại output.

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

Tham số

Tham sốKiểuBắt buộcMặc địnhMô tả
PowerShell scriptmultiline
Tùy chọnInline PowerShell. Ignored if a .ps1 file is given below.
Ví dụ: Get-Date
Hỗ trợ biến
Script file (.ps1)file
Tùy chọnOptional. If set, this file is run instead of the inline script.
Ví dụ: C:/scripts/task.ps1
Hỗ trợ biến
Argumentsstring
Tùy chọnPassed to the .ps1 file (only used with a script file).
Hỗ trợ biến
Store stdout invariable
Tùy chọn
Ví dụ: output

Các lệnh Chương trình & tiến trình khác

Sẵn sàng tự động hóa việc bận rộn?

Bắt đầu dùng thử miễn phí 10 ngày hôm nay. Không cần thẻ, không ràng buộc.