Whatever power cord you use, make sure the wire gauge is big enough for the current draw of the sub’s amplifier (12awg should be fine), the connectors make good contact and fit snugly in the duplex, and the cable is shielded to reduce noise (although not necessarily a requirement if you don’t have a noise issue).
You can get this done for as little as $100 or less, with something like this one, or even this one. Here is one that you could construct as a DIY project using a typical Hubble plug and IEC. You should be able to find that cable by the foot.