Script authors want the ability to have a single script that can do multiple things and invoke that behavior from different KBar Buttons. The easiest/most elegant way to do this is to expose a variable that consuming scripts can check and
switch their behavior against.
Suggestion by Lloyd:
Expose a global
kbar variable that can be probed by a consuming script so it can modify its behavior.