I’d rather not get into the exact command, as I could be interpretted as teaching people how to exploit.
But, its a simple command that clicks a popup menu. Its something quite a few addons do themselves, and outside of the methodology of using it for BGs, is perfectly legal command.