Powershell Get-Process get started process
使用-PassThru
参数,Start-Process
就会传回process
$proc = Start-Process ping -Args "1.1.1.1" -NoNewWindow -PassThru
使用-PassThru
参数,Start-Process
就会传回process
$proc = Start-Process ping -Args "1.1.1.1" -NoNewWindow -PassThru