You don't, ShellExecute doesn't have the functionality you want. You could use ShellExecuteEx asking for the process handle return and polling until that process terminates if you wanted.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results