%PATH% got not recognized as Name of Cmdlet, Function, Script file or program
The usual thing is to run perl in a cmd.exe shell, not in Windows powershell - and the command I provided is for the cmd.exe shell.
But if you're running in powershell, then you would instead re-set the PATH with: