The verbal “foot” command is a good idea.
However you do it, I think that once the bow commences, you have to immediately put everything down, turn your back and walk away for a couple of minutes.
He has to perceive a non-reward, even a negative such as losing all attention, in response to the bow.
IMO this has to be kept up absolutely consistently for a couple of years to really see the ‘bow’ behavior go away!
Warning that if you fudge this in any way, such as not following through on turning away, not only will he not unlearn the bow, he’ll keep it up forever thinking that at least some of the time he will get attention for it. But only if he keeps trying.
That also goes for occasionally breaking routine and having him do his bow on purpose, to show someone else. It just reverts the animal back to the behavior, thinking a reward is coming so long as they don’t quit trying.
Behavioral science has shown that inconsistent, even infrequent, reward cements a behavior into an animal’s brain longer than any training method. If the reward is intermittent, the animal keeps up the behavior, because sooner or later the reward will come. But only if they keep doing it.
To end the behavior, any form of reward has to 100% go away, forever.