I am very impressed by your script and all the work you've done. I am desperately trying to get Win7 on a lightweight laptop that originally came with win10 (HP 14-dq1043cl) and I think I am really close to getting it working. The laptop is NVMe only and I get an error adding the MS NVMe hotfix. I have the HP video driver added and remove the VGA driver. When I do the Win7 install, it sees the NVMe drive and installs win7 on it. However, on reboot after installing it hangs at the spinning dots and "starting windows".
FWIW, I tried doing a fresh install of Win10 so I could check hardware IDs to make sure drivers are correct, and that works fine.
Suggestions?