I am creating a Switch statement through PowerShell. I am having trouble when running this code:

```
        ps c:\

                  switch((healthcheck)) {
'critical' {1}
'warning'  {2}
'healthy'  {3}
default    {999}  # not reading critical(1), warning(2), or healthy(3)}

```

---

output: 999

---

It seems as if it cannot find the "critical, healthy, or warning" when I run (healthcheck) which looks like this:
-----------------------------------------------------------------------------------------------------------------

ps c:\ healthcheck

---

output: 

ResponseType Description Message  

------------ ----------- -------  

Critical Database Issue An error occurred while connecting to the database.........

---

\*\*\*\*\*\* The url I am using within the (healthcheck) function refreshes everytime giving critical, warning, or healthy. My GOAL is to translate critical, warning, or healthy to ==== 1, 2, or 3!

Thanks.