Sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia -volume /Volumes/ MyVolume Sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia -volume /Volumes/ MyVolume Sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia -volume /Volumes/ MyVolume Sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia -volume /Volumes/ MyVolume
Sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia -volume /Volumes/ MyVolume
If it has a different name, replace MyVolume in these commands with the name of your volume. These assume that the installer is in your Applications folder, and MyVolume is the name of the USB flash drive or other volume you're using.