You just need to a add the path of your PHP file. In case you are using wamp or have not installed it on the C drive. Set "C:\xampp\php" in your PATH Environment Variable. In the Edit System Variable window, Add C:\xampp\php to your PATH Environment Variable.