Regular trains don't run underground. Lots of opencast mines exist .
Basically all mines have an above ground terminal where whatever you mined is unloaded from your underground trains, lifts, haul trucks or whatever else onto storage piles, then loaded onto the actual long distance trains.
If the mine entry is up a mountain, then the trip down from that point will be a net energy producer regardless of anything else.
Yeah, directional thrusting is a thing. It was used a lot when contractors were installing NZ's new fibre network about a decade ago. I don't think it's in as widespread usage for power because power cables tend to have much wider bending radii.