Select an exterior cord which is compatible with your lights, and with the weather it will endure. If you have a porch light that's shielded from the elements, you may be able to insert a socket adapter that places a power socket between the fixture and the lamp. Running an extension ...