Just run the PHP CLI (Command Line Interface) program and give the PHP script file name as the command line argument. For instance, "php myScript.php", assuming "PHP" is the command to invoke the CLI program.
Be aware that if your PHP script was written for the Web CGI interface, it may not implement properly in command line environment.