Hi there,
install win server 2022
then install sql server 2017 or higher (I'd recommend to go for the most recent version, eg SQL2022)
And then you can utilize the powershell module dbatools, which can do the heavy lifting for you:
https://docs.dbatools.io/Start-DbaMigration
BR,
Dirk