Connect the USB flash drive to your Mac. Open Terminal (Applications > Utilities > Terminal). Use one of the following commands, replacing MyVolume with your USB name.
Select a macOS version
Windows USB installers
write the iso to the USB then extract the drivers folder to the root