That’s not gonna fly.
If you want to feed low voltage i’d suggest feeding 12 V, 24V or 48 V and then having a converter in the box that puts out 5 V.
Otherwise you end up with an undefined voltage feeding the Pi and that never works well.
Maybe check out this thread: Outdoor Enclosure
Can’t find the other threads about enclosure builds right now.