You do rather seem to be avoiding @IanD's main point of concern.
It's all technically feasible, but it uses between 2 and 4 times the energy input compared to the useful energy output.
Does it make more sense to charge the batteries 4 times using the same input power or to fill the hydrogen fuel cell once?
The only sensible use of Hydrogen as a fuel is to convert it to Helium, but that's called fusion ... and has been thirty years in the future for the last 80 years or so!
Personally I don't believe we'll get there unless we figure out how to control gravity, so our nearest useful fusion reactor is about 92 million miles thataway! ☀️