powershell read all environment variables and store in a list code example Example: powershell print environment variables #pws $Env:path Get-ChildItem env