start-process id powershell

Shell
# Starts Notepad and returns the ID
(Start-Process Notepad -passthru).ID$app = Start-Process notepad -passthru
Wait-Process $app.Id
Source

Also in Shell: