I did get the answer from some more research and help.
In LISP the way to execute the commands sequentially, we can use (progn expr ....)
However, if some programs take command line input, this might not help. The issue above was specifically with AutoCAD and .arx applications, so we can include the following line in the VC++ program.
ads_queueexpr(_T("(arxunload \"XYZ\")") );
Hope this helps.