Use the PHP command line interface (CLI) and enter the file name of the script to be executed as follows:
php phpscript.php