Start and stop axapta client by code in MSDAx

To start axapta using x++ code you can try following line of code in job

WINAPI::shellExecute("ax32.exe");

To close axapta client using x++ code you can try following line in job

infolog.shutDown(true);

where infolog is class which has shutdown method inside.