The following commands will completely wipe out the selected disk without warning, so make sure you select the proper disk!
Get the ISO file of your desired version of Windows (7, 8, 10, Server, etc.).
diskpart
list disk
select disk $NumberOfTheUsbStick
list disk
clean
create partition primary
select partition 1
active
format fs=ntfs quick label=”Windows Setup”
exit
F:
cd boot
bootsect /nt60 E:
xcopy F:\*.* E:\ /E /H /F