Tridion\'s user interface allows you to extend specific commands, which is a great way to modify the behavior of certain existing commands. In the configuration file of the edit
I had to do something similar, and ended up having to extend various commands and set the "current" command as part of my "_execute" call (so I would now call _execute(selection, pipeline, originalCommand) for my command.