You're trying to pipe the output to the "tee" command, which is an Unix command and probably isn't available on windows unless you installed Cygwin or a similar utility package. Of course you could install Cygwin, but.... ;) This node 453546 relates closely to your problem and may provide some answers, like the module IO::Tee.