Create a bootable Windows ISO from USB/Folder on macOS

hdiutil makehybrid -iso -joliet -o image.iso /path/to/source

This works if you need to alter a Windows image for TPM prior to boot camping