I think realizing this feature via script would be a great start. Unfortunately I have no coding knowledge to attempt this myself.
However, what you say is what I was thinking.
That is a script to peek at the histogram and carry of taking shoots at the user specified Ev until the histogram limits are reached or the max or min shutter speed.
If someone with coding knowledge could pull such a script together I would love to pay with it. Such a script would also inventivise me to start learning some coding.
Cheers
Garry