Powershell Case Syntax Postgresql