Is there an api you could use to shut down program from another program?

IceSoft