Command/Environment/ShowEnvironmentVariables.ps1


$variables = Get-ChildItem env:
Write-Output "Found $($variables.Count) environment variables . . . "
Write-Output ""
$content = $variables | Foreach-Object { $_.Key + " = " + $_.Value }
$content
Read-Host "The script has finished. Press any key to exit"