To be fair, there isn't a whole lot of code there. I wouldn't be surprised if Microsoft had the WinPE generator written already for some other project.
https://learn.microsoft.com/en-us/windows-hardware/manufactu...
Still, customizing the toolchain to fit this particular scenario and making sure it works, in two days, is commendable effort.