windows 10 show environment variables powershell code example Example: powershell set environment variable # Windows PowerShell PS C:\> $env:VAR_NAME="VALUE"