You are unable to spawn a train but it can be bypassed with /trailer like shown in the video, the process is simple, just hop into a vehicle and do /trailer freight