You need a Windows 10, or 11 machine to run the MSM tool:
"The procedure requires a computer running Win10 or Win11. Using a virtualized Windows is impossible."
This is the porters notes here.
You have to install the stipulated Android version or things won't work and you could brick the device.