@filiplachert @jon The train "charger" is the overhead line, which pushes Megawatts easily already.
So a train starts the trip from a big station which already has overhead lines, and proceeds to the unelectrified branch line. If the battery isn't big enough for the round trip, just install overhead line at the terminus and charge while waiting for turnaround.