in reply to Run and Stop another program in perl

My suggestion is to read about the alarm() funtion, although it's different across many Windows platforms.

Effectively, you can set a timer, run program.exe for the amount of time you choose, then the exe will be killed, and your script will continue.