Why don't you use the Windows 10 ISO file? Try it. Replace install.wim with yours. I tried this script several times but still without success and gave up.