If you look in the UDF forum I'm sure you will find some functions to do what you need, specifically Enumprocess() and Readfile().

I think the hard part will be determining which EXE to kill since there will be two.