با پارامتر Passthru، PowerShell خروجی را در کنسول برمی گرداند. به عنوان مثال، فرآیند notepad.exe در زیر با شناسه 12344 متوقف می شود و همان با پارامتر Passthru در کنسول نمایش داده می شود. قبلاً فقط در مورد Stop-Process اینطور نبود .
PS C:WINDOWSsystem32> Stop-Process -Id 12344 -PassThru Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName ------- ------ ----- ----- ------ -- -- ----------- 227 13 2800 13440 0.19 12344 1 notepad
همچنین می توانید پارامترهای –Confirm و –PassThru را ترکیب کنید.
[/membership]PS C:WINDOWSsystem32> Stop-Process -Id 26492 -Confirm -PassThru Confirm Are you sure you want to perform this action? Performing the operation "Stop-Process" on target "notepad (26492)". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName ------- ------ ----- ----- ------ -- -- ----------- 228 14 3152 13736 0.20 26492 1 notepad