powershell echo environment variable into a file code example Example: powershell print environment variables #pws $Env:path Get-ChildItem env