I developed an AppleScript to choose the sound output device in Mac easily.
Also, there is a script to reset the sound output device selection to the Macbook sound output. It is good when your sound output USB device stops playing anything in MacOS.
You can download the repository of SoundOutputSelector
All feedback will be welcome.