IR35 (the "off-payroll working rules") is HMRC's test of whether a contractor is genuinely self-employed or is effectively an employee of the end client. It applies to anyone working through a personal service company (PSC / limited company).
For most rail and rolling stock contracts, the end client decides the status(Network Rail, TOCs/FOCs, ROSCOs, Tier-1s). Your agency processes the determination.