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ểu | Bắt buộc | Mặc định | Mô tả |
|---|---|---|---|---|
| PowerShell script | multiline | Tùy chọn | Inline PowerShell. Ignored if a .ps1 file is given below. Ví dụ: Get-Date Hỗ trợ biến | |
| Script file (.ps1) | file | Tùy chọn | Optional. If set, this file is run instead of the inline script. Ví dụ: C:/scripts/task.ps1 Hỗ trợ biến | |
| Arguments | string | Tùy chọn | Passed to the .ps1 file (only used with a script file). Hỗ trợ biến | |
| Store stdout in | variable | 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.