Wiring question

I’d still run an AC extension cord as far as you can so you can minimize the distance a USB extender cable has to go, as you will see voltage drops over those. Then get as heavy a gauge of USB extender cable as you can to go thru the wall and the rest of the way. I don’t think I’d go further than 25 feet with that, but YMMV (the shorter the better for the USB cord).

Here is some reading on the subject: