So, use PL2BAT on your program: pl2bat yourTKscript.pl #### Now edit the bat file and change the perl line to start wperl -x -S %0 %*