pl2bat foo.pl foo.bat | more foo | more foo > results.txt dir | foo