It is common to run NM for long temp extension cords where the ends are not moved frequently.

The only reason that NM is not approved for extension cords is that is is not tested for that purpose.