.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.