... my $pid = system 1, q[ c:\the\path\to\theProgram.exe /option1 /option2 ]; sleep $timeout; kill 2, $pid; ...