At Full Gallop (2000)

A railway clerk gets his chance to be a cowboy when he suspects his boss of unethical reasons for wanting to close down the office.