Electrical Cord too short for Over the range microwave

I have a Whirlpool Over the Range Microwave that’s power cord is about 6 inches to short to plug into the power outlet. I really don’t want to install a new outlet, due to running electrical wires through the wall (very old house). Can I get a new power cord with the extra lenght, and replace safely.

Cheers

In order to provide the most accurate advise I need the complete model number of the microwave.

Gene.