Create a System Environment Variable in PowerShell code example Example: powershell set environment variable # Windows PowerShell PS C:\> $env:VAR_NAME="VALUE"