How to send many CCs on a single button press

I want to implement an external mute and solo functionality for my Elektron digitakt 2 for live performance (it has no track solo). Each track’s mute can be controlled via CC94 on a midi channel per track basis. I was thinking of using 2 banks one for mute state and the second for solo state. I can code, so if there’s a way for a button to trigger a script which can access the state of the buttons and send messages, I could try that.

I have 2 questions:

  1. I wanted to know if it’s possible to configure the buttons to send up to 16 CC messages across 16 midi channels at the same time on one button press? Since in the most extreme use case, if you solo one track you need to mute all the 15 others.

  2. Can you have 16 CCs messages be sent when you switch banks? For example in my case when you exit out of the “solo bank” by going back to the “mute bank” I would then need to send all the previous state of the mutes to the digitakt 2.

Thanks for any pointers about how this could be achieved.