Postgres Set Variable In Powershell If Statement