Postgresql Loop Through Array Powershell Get Environment