Wish-multiple comand gadget(s)

I would like to have the button and possibly other gadgets have the ability of multiple commands at the same time. For instance, I am talking to a modbus device and I want to send a command to stop and a command to switch to “manual mode” at the same time (2 different registers). Currently this is not possible.