There are easier ways of accomplishing this.
They are pretty hostile to their end-users.
Then I use WinNTSetup [2], just point it to where the Windows setup files are, and which partition is the boot partition (EFI partition) and which partition is to become C:.
[1] https://learn.microsoft.com/en-us/windows-hardware/manufactu...