open SHELL, "| bash.exe" or die "can't open the shell: $!"; print SHELL "type C:/temp.ml | ocaml > C:/output.txt\n"; print SHELL "dir C:/output.txt\n"; # and so on...