Haha, I did that multiple times back from school with my boy. If he was acting wrong or making a "tantrum" (probably after a hard long day at school), I would just stop the car somewhere and say "Do what you want but I'll restart the car once you are calm".
It worked every time. He stopped after a minute or two. And then we were able to talk about what was wrong.
Just interrupting the flow shows that something must stop now for the normal life to continue. And then everyone can speak calmly.
Like on the car road trip, instead of dragging it out with individual pieces of candy (that'll take forever), stop the car and give them a Stern Talking To. Interrupt the flow of the moment.