Powering a 240V 15A air compressor with a 6-20 plug
Actually, it is a fielder's choice.

Either way, all you have to do is make up a cord with #10 wire that is rated for 30 amps with a male plug on one and a female plug on the other to transition between the different plugs.

Good luck and stay safe!