Keep in mind the simplistic function I posted is indiscriminant -- it will attempt to kill all instances matching the argument name.
In the case of a desired suicide, i.e. (_KillProcess "acad.exe"), it would be better to dermine the ProcessID (PID) of the current instance (probably via the HWND), and then kill the process by said PID, i.e. ... (strcat "SELECT * FROM Win32_Process WHERE ProcessID = " process_id) ... etc.
As penned, (_KillProcess "acad.exe") would merely try to kill all instances of "acad.exe", and if there is more than one running instance there's high probability an "innocent" instance would be terminated before the current desired instance. While a fun challenge I've other fish to fry at present; enjoy.