Using Postgresql With Powershell For Loop