Postgresql Loop Through Array Powershell Version Check