PowerShell: Session Environment Variable
💡 TIP: Windows environment variable names are case-insensitive.
Show All Environment Variables
# show all environment variables dir env:
# show env vars whose name contains path dir env:*path*
Set Environment Variable for current session
# sets env var named xx for current session $env:xx = "alice"
# get value of a env var name xx $env:xx
Remove Environment Variable for current session
# remove the env var xx from the current session Remove-Item env:xx