Place an ear of corn, still in its husk, inside a plastic bag. Tie it loosely. Actually, you don't need to put it in a bag, as is works just fine.
Put it in the center of the microwave. Set the timer for 4 minutes, 30 seconds or so less if the corn is small.