I watched a woman deal with a dog that was barking incessantly.
She looked at the dog and said “quiet, or you’re getting a bath!”
The dog didn’t make another sound.
I do the same type of thing with my doggy. I just need to ask him if he wants to go in the bathroom. It’s his “time out” spot and he hates it.