macOS dd usually fails to produce a bootable Windows USB. Use third-party tools like BalenaEtcher or UNetbootin.

# Download macOS installer from App Store, then: hdiutil create -o /tmp/Monterey -size 12g -volname Monterey -layout SPUD -fs HFS+J hdiutil attach /tmp/Monterey.dmg sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/Monterey --nointeraction hdiutil detach /Volumes/Install\ macOS\ Monterey hdiutil convert /tmp/Monterey.dmg -format UDTO -o Monterey.iso mv Monterey.iso.cdr Monterey.iso

: Ensure you are using sudo for the createinstallmedia step.

hdiutil attach /tmp/macOS.dmg -noverify -mountpoint /Volumes/macOS

hdiutil attach /tmp/[Version].dmg -noverify -mountpoint /Volumes/[Version] 3. Create the Installation Media