Not sure I follow.
The examples I gave will start MPASMWIN. When that GUI is finished and OK is clicked the DOS window should terminate.