powershell cmdlet to set environment variables for an account code example Example: powershell set environment variable # Windows PowerShell PS C:\> $env:VAR_NAME="VALUE"