If the switch is not on the handlebars, but directly mounted into one of the lights on the aftermarket light bar - it would be the on/off switch for the lights on the light bar.
When installing a light bar on any bike - it's simpler to just wire the lights into the high beam of the headlight...