This is just a quick example.
Create logic_relay entity. Name it something. On it's output tab, put OnTrigger yourtracktrainname Startforward
In trigger_capture_area outout tab, put OnEndCap something Trigger.
This will trigger the logic_relay where you can put the things you need. You can also have separate teams to trigger it (OnCapTeam1 or OnCapTeam2