I have a script that accepts form input and then does some stuff. It works perfect through the browser.

However, I have a need now to run this script from the command prompt (actually as a scheduled task but one step at a time). I am trying to run the script from the command prompt and pass it the argument it would get from the form but I can't get the command line right. If I don't pass it an argument, the script runs fine. But everything I've tried to pass in a parameter fails. Can anyone tell me what the proper syntax should be? And perhaps how to read the arguments inside the script? I am just using the same code that it used when running through the browser.