I got the following error when I run a command with php
php
C:\\xampp\\htdocs>php \'php\' is not recognized as an internal or external command, o
Set "C:\xampp\php" in your PATH Environment Variable. Then restart CMD prompt.
"C:\xampp\php"
Is your path correctly configured?
In Windows, you can do that as described here:
http://www.computerhope.com/issues/ch000549.htm