In a scathing letter to the rail operator’s interim heads, the transport secretary puts the company on notice.