Using Postgresql With Powershell Foreach Next Item