powershell export variable code example
Example 1: powershell set environment variable
# Windows PowerShell
PS C:\> $env:VAR_NAME="VALUE"
Example 2: powershell print environment variables
#pws
$Env:path
Get-ChildItem env
# Windows PowerShell
PS C:\> $env:VAR_NAME="VALUE"
#pws
$Env:path
Get-ChildItem env