It's a lightweight utility and offers a few more customization options compared to Microsoft's in-house media creation tool.
Why can’t I install Windows 11/10 on a USB flash drive? The main reason why you are not able to install Windows 11 or Windows 10 from a USB flash drive is that the USB device is offline.
So, close it and then enter the above command. If the Windows built-in Diskpart tool cannot clean your USB drive and fix this issue, you can use a third-party tool to do so. Various good free Disk ...