Sometimes you need to wait for an executable to finish its job. The typical case is a Setup.exe, but this behavior is also ideal candidate for cleaning up temporary files after an application has been closed. Powershell makes this easy; just redirect the output to a (valid) pipe.
& 'C:\Program Files\Internet Explorer\iexplore.exe' | echo "Waiting." "Internet Explorer has been closed."