set env windows powershell code example
Example 1: powershell set environment variable
# Windows PowerShell
PS C:\> $env:VAR_NAME="VALUE"
Example 2: powershell environment variables set
$Env:<variable-name> = "<new-value>"
# Windows PowerShell
PS C:\> $env:VAR_NAME="VALUE"
$Env:<variable-name> = "<new-value>"