You could run a line overhead on pylons and put a pick up on a pole on the cars.
A smaller version of these things: https://sandtoft.org/wp/