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
You need to add C:\xampp\php to your PATH Environment Variable, Only after then you would be able to execute php command line from outside php_home.
C:\xampp\php
PATH Environment Variable
php_home