C:\_32\pscrpt>set MY_STDOUT=C:\batch\demo.txt C:\_32\pscrpt>perl try.pl >%MY_STDOUT%