This option is similar in effect to terminating a process, but it allows the application to shut down cleanly with any necessary user prompting, as if the user had exited using its interactive interface.
To use this feature, specify "K?" as the first command line parameter (upper case). The second command line parameter is the window class of the application's main window, and the third parameter is the title text of its main window..
"wtscript" does not terminate until the request has been processed by the target application.
Page url: http://wtcmanual.wintextware.com/index.html?lps_requesting_application_shutdow.htm