I'm looking to install a stair light above my stairs. I plan on using a proper box, stress clamp, and all that. The wiring will have to come from my basement, through the wall. The question I have is the best way to wire this up to power.
Ideally I would run the cable through the wall, between the studs, to the nearest wall outlet and hook it up there. The issue is this is not very close and I'd have to go through several studs; plus I am not very comfortable fishing wires through walls. It would be 100x easier to use something like an open-ended extension cord: the open end gets wired to the light, and then I run the extension cord to the outlet and simply plug it in.
What are possible pitfalls with this? I plan on securing the cord to the wall, and using the correct stress relief in the box. I'd like to get the smallest extension cord possible, as I'm going to be pulling 3 watts at most.
Related question: can I make this open-ended cord myself, or this that a bad idea? I'm confident it would work just fine, but warranty, building codes, and all that.