Wait for Programs

by Feb 25, 2010

PowerShell launches Windows applications asynchronously. It only waits for the console application so you should use -wait if you want to launch a Windows application and wait for it until it finishes:

Start-Process notepad -wait

Twitter This Tip! ReTweet this Tip!