In case some one wants to know how to set up Environment variables
- Click on the windows button on the bottom left and go to System
- Click the Advanced System Settings link in the left column
- In the System Properties window, click on the Advanced tab, then click the Environment Variables button near the bottom of that tab.
- In the Environment Variables window , highlight the Path variable in the "System variables" section and click the Edit button. Add the path lines with the paths you want the computer to access.
Once you have done that you can run using the command from the start->command line as below
php <path to file location>