I have found out that setting the PATH environment variable affects only the old command prompt. PowerShell seems to have different environment settings. How do I change the
Open PowerShell and run:
[Environment]::SetEnvironmentVariable("PATH", "$ENV:PATH;", "USER")