Well, you could make a “train” to orbit but your rail would have to be hundreds of kilometers long, dozens of kilometers tall, held up with wires and particle accelerators, and the train would probably just be a single car
Btw this would just accelerate the space plane so it doesnt have to burn as much fuel as otherwise. It’s not a literal train into space