Solution:
In ATEasy 3.0 build 54b and above, WinExec returns a true handle.
hHandle=WinExec(..)
WaitForSingleObject(nHandle) ! wait until app is completed
….
For ATEasy 3.0 build 54a and below, you must use FindWindow (user32) on the caption of you application or the class of its main window (using spy):
WinExec(...)
while FindWindow(...)
endwhile