Dispatching the command to the popover won't do anything, the command is a side effect not the cause of the built-ins.
I meant something like below, but I guess you'd want to set a flag on the button to say ignore this click, then early return in some other click handler you have.