 <p>passthru is a method in PHP see <a href="http://php.net/manual/en/function.passthru.php" rel="nofollow">http://php.net/manual/en/function.passthru.php</a></p> <p>Do you know what the script does? Maybe reverse engineer it into windows batch script?</p> <p>From the looks of it, the script came from a *nix system it:</p> <ul> <li>execute a command as another user</li> <li>change the current directory</li> <li>set environment variables </li> <li>calls a PHP script directly from the PHP interpreter and dumps the log into a file, and pipes the stderrs to /dev/null</li> </ul> <p>That script is imo, is impossible to "covert" to Windows batch script (since Windows != POSIX), you need to rewrite it. </p>