.bat and .hta

ok, powershell question..

parameters, i know you can use [switch] to use without input, but can you use a switch without an if statement? i'm trying to clean up the 50 "ifs" i have.
Switch replaces ifs.

https://docs.microsoft.com/en-us/po...s/everything-about-switch?view=powershell-7.2