Nice! I remember Clark Howard was talking about this being fairly cheap (of done properly) and effective way of getting your way at a dealership.
The key was not to do this on their property and not advertise your issue publicly, as that would just get you a suit. I think he suggested something like “Ask me about my experience at this dealership”.
It took about 4 days before they caved in to his demands and refunded his money.
Note that in the US, if you end up with a lemon you have to make your claim through the manufacturer, not the dealer. Use the phone number that is in your owner's manual. Every state has it's own criteria for determining if a car is a lemon. In North Carolina, the law says "reasonable number of attempts", which has been commonly accepted to be four. Or has been out of service for 20+ business days over a year.
https://ncdoj.gov/protecting-consumers/automobiles/lemon-law...