Sure, you can create a script or automation and call that with the button press, but:
A) that seems needlessly complex when so many other areas of the UI allow adding a list of Actions, and
B) what I really want to do is call an Action, then a Navigation change on the sending device, which can’t be done via script.