open my $pipe,'run.bat 2>&1 |' or die "Ooops: $!"; # ...