If you would like to run the above script on Unix, you need to make it executable, and simply call it as script.php echothis or script.php -h.
Assuming you named the above program script.php, and you have your CLI php.exe in c:\php\cli\php.exe this batch file will run it for you with your added options: script.bat echothis or script.bat -h.