If you're asking whether it's possible to do something like pbSetSelfSwitch([10,11,12,13,14,15,16,17,18,19,20],"A",true), I'm not sure if that's functionally possible. You can still just do this in one script event:
pbSetSelfSwitch(10,"A",true)
pbSetSelfSwitch(11,"A",true)...