ScreenSound twibster
Use this command to install ScreenSound:
winget install --id=twibster.ScreenSound -e ScreenSound automatically routes each app's audio to the speaker paired with the monitor it's displayed on. Move a window from your laptop screen to your TV — the audio follows. Pin specific apps to specific outputs, run silently in the system tray, and forget about manually switching default devices.