You can run a job script automatically when mDesktop starts by modifying the properties of the mDesktop icon so that after the Target you add /R: followed by the job script name e.g.
"C:\Program Files\matchITv6\matchit.exe" /R:jobname
where jobname is the reference of the job script. To quit matchIT automatically at the end of the job script, you have to run a program at the end of the job that simply contains these commands:
on shutdown && this stops matchIT asking if you want to quit matchIT on next command
quit && Quit matchIT
However, if you want matchIT to automatically close on the job completion and remove any Temp files that were created your close script will contain the following:
DO UseTable WITH "PARAMS", "P", "", 1
lcCleanup = p.do_cleanup
replace p.do_cleanup with "YES" && set to cleanup temp files without asking
do cleanup
DO UseTable WITH "PARAMS", "P", "", 1
replace p.do_cleanup with lcCleanup
on shutdown && this stops matchIT asking if you want to quit matchIT on next command
quit && Quit matchIT