Switch-Anweisung

switch ($a)
{
   "Value1" {//Scriptblock//}
   "Value2" {//another Scriptblock//}
   default {//Scriptblock what to do, if no case//}
}

Quelle: https://technet.microsoft.com/en-us/library/ff730937.aspx