powershell add system path environment variable code example
Example 1: powershell add to env path
$env:Path = "SomeRandomPath"; (replaces existing path)
$env:Path += ";SomeRandomPath" (appends to existing path)
Example 2: how to get environment variables in powershell
#Windows Powershell
cd Env:
Get-ChildItem