Using Postgresql With Powershell Foreach Break Javascript