Postgresql Set Variable In Powershell If Statement