I recently saw an installation for a small machine using an 18 ga. cord on a 20-amp three-phase breaker. The electrician put some blue painters tape next to the breaker to label it "temporary".

Please note 527.2(A)Other Articles.
Except as specifically modified in this article, all other requirements of this Code for permanent wiring shall apply to temporary wiring installations.

Dave