Postgresql Loop Through Array Powershell Get Content