https://www.amazon.com/Rigid-TWISTED-Festoon-Interior-Lights/dp/B073VFDFN7I just went through this this morning, very frustrating. I searched and settled on what I thought was the right LED light from SBI. After waiting for it to arrive, figuring out how to install it only to find it aims the wrong way. I tried to 'make it work' and broke it. So I looked on line again and I found an LED light for under the hood that has flexible wire ends so you can twist the light to face in the direction you want (like down twd the engine) So if I want an LED light under the hood looks like more money, more time, but hopefully this will do the trick. It's bit costly but... here's the link
https://headlightrevolution.com/2009-2017-dodge-ram-led-under-hood-light-bulb-upgrade/
I have this one - 2 bulbs for less than your one, already pointing in the correct direction for under hood use, and bright as the sun! I could do brain surgery under there now.