It looks like the path is a bit messed up

1.Go to Control Panel → System and Security → System
2.Click Advanced system settings
3.Click Environment Variables
4.In the System Variables area, locate the Path variable, highlight it and click Edit…
5.Is the path as below ? If not then change it to that

Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;

6.Make the required changes, Click OK, OK, OK