Depending on your install of PHP you should be able to run scripts from the command line. If you want it to handle switches or options you will have to code it to look for them though, it's not as simple as running them through a browser where you can append information at the end of the URL.