18 volt Milwaukee cells? Several of them? If so, in series ( charge imbalance issues likely ).?
If you have ample 18 volt power, do you need to simply drop 6 volts at 2 amperes by using a 3 ohm "ballast resistor" ( E=IR: R=E/I=6/2=3), P=IE=2*6=12, Go ahead and use a 100 watt one. ( They are sealed , rugged, cheap, reliable, and easy to mount - besides a known ballast resistor gives you a handy test point to measure IP solenoid current by measuring the voltage drop across the resistor.. a six volt drop across 3 ohms confirms a 2 ampere current flow. )
Yes, way oversize the power ratings for resistors. They run hot, and practical heat sinking conditions are rarely, if ever, ideal . I'd want to specify the use of heat transfer paste, but I would probably settle for a dab of silicone sealant. Anything gooey that doesn't evaporate readily or conduct electricity has worked well for me in the past.
I am leery of anything electronic, as inductive kickbacks and alternator load dumps have caused me much woe.
Seems I remember another BOOB here had problems about losing IP solenoids and stagnant fuel flow leading to thermal issues...so I consider that a heads-up keeping an IP solenoid engages without the engine running, as the fuel is likely also serving as a coolant for the IP solenoid.
If you have no alternator running, that constant 2 amperes load adds up over time.
Theoretically, a 12 volt 10 ampere-hour gel cell should power your 2 amp solenoid for five hours. Theoretically.
( BOOB : Brotherhood Of Oil Burners ), should anyone think I am disrespecting an honorable resident here.