The title pretty much says it, although it does not need to be specific to a cmd, just closing an application in general. I have seen
os.system(taskkill bla
the exit() command works however in 2.7 it still asks you if you are sure you want to quit. It states that the program is still running. ETC