Bring a HS4000 Kestrel onto the track ahead of the train and as the hijacked train catches up, match their speed.
Slowly bring them together and then gradually let the Kestrel bring them all to a halt.
Job done.
Can I have the Job as Cyber Security chief?