Postgres Loop Through Array Powershell Script