Postgresql Loop Through Array Powershell Update Xml