Postgresql Loop Through Array Powershell Version 3