Question : start-process id powershell
Answered by : famous-flatworm-9cfszm5a8y09
$app = Start-Process notepad -passthru
Wait-Process $app.Id
Source : https://stackoverflow.com/questions/4762982/powershell-get-process-id-of-called-application | Last Update : Wed, 01 Jul 20
Question : start-process id powershell
Answered by : famous-flatworm-9cfszm5a8y09
# Starts Notepad and returns the ID
(Start-Process Notepad -passthru).ID
Source : https://stackoverflow.com/questions/4762982/powershell-get-process-id-of-called-application | Last Update : Wed, 01 Jul 20