Using Postgresql With Powershell If Statement