Postgresql Loop Through Array Powershell Try