how to call a function in a switch statement powershell code example
Example: powershell switch statement
switch(<test-value>) {
<condition> {<action>}
break; // optional
<condition> {<action>}
break; // optional
<condition> {<action>}
break; // optional
}