Given your computer is running Win 10. and Win 11 ISO ready (21H2 downloaded from Microsoft web).
Try
this script from Github (it's open source code), unzip and run.
https://git.hub.com/coofcookie/Windows11Upgrade/releases/tag/1.0.0
Pleasse remove "." in "git.hub". for somehow. it's banned by wxc. 22H2 NOT official release yet. hence NOT supported. It's recommended that backup your computer 1st before Windows 11 upgrade.
It offers three options: upgrade-install, , , or clean-install. Just do as you please.
In this way, you won't run into any issues on BIOS (CSM UFEI), TPM, MS account, , ,
If you prefer a local/offline account than MS account, it's better first make it on Win 10 then run the Win 11 upgrade script.