ps environment variables code example
Example 1: powershell set environment variable
# Windows PowerShell
PS C:\> $env:VAR_NAME="VALUE"
Example 2: how to get environment variables in powershell
#Windows Powershell
cd Env:
Get-ChildItem
# Windows PowerShell
PS C:\> $env:VAR_NAME="VALUE"
#Windows Powershell
cd Env:
Get-ChildItem