Collaborative viewer 4.26: binding contextual menu options to user created buttons?

I am wondering if anyone could help me assign the new contextual menu options to my own user created buttons. For example I would like to assign the measurement tool to my own button. So far I have tried this:

Any help would be greatly appreciated! Thank you