How about a hose clamp and a piece of L-shaped bracket? Clamp the bottom of the bracket to the bar, and drill a hole in the top part to mount the switch with.
Both can be found at your local hardware store.
And a switch too, if you don't mind a big honking AC/motor light switch kind of part.
Or an autoparts store.