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
Within PowerShell, one can navigate to the environment variable directory by typing:
Set-Location Env:
This will bring you to the Env:> directory. From within this directory:
To see all environment variables, type:
Env:\> Get-ChildItem
To see a specific environment variable, type:
Env:\> $Env:, e.g. $Env:Path
To set an environment variable, type:
Env:\> $Env: = "", e.g. $Env:Path="C:\Users\"
To remove an environment variable, type:
Env:\> remove-item Env:, e.g. remove-item Env:SECRET_KEY
More information is in About Environment Variables.