You must file each W-2 using software appropriate for that year. W-2 from 2021 using TurboTax 2021, etc.
Please see this TurboTax Help FAQ for step-by-step instructions: How do I prepare a 2021, 2020, or 2019 tax return?
Prior-year returns must be paper-filed, as e-filing is no longer available for them.