Linux/macOS:
sudo dd if=diagnostics-x86_64.iso of=/dev/sdX bs=4M status=progress && sync
Windows: Use Rufus — select GPT partition scheme, UEFI target.
Or skip all this and use the Windows Installer above — it can write directly to a USB drive.