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.
A password management tool installed by default alongside Trend Micro AntiVirus was found vulnerable to remote code execution thanks to the work of Google's Project Zero security team. Discovered by ...