This would be the closet option. Unfortunately you still have to get out.
From my knowledge, I don’t think it would be possible to target the nearest vehicle, tow it, all while you’re in the vehicle. When you’re in a vehicle, you can’t target the nearest vehicle, because that’s the vehicle you’re in. (fact check me (90% sure))
You can also bind the /tow command from this script to a simple keybind.