[Help] Change Alert Volume Device without changing my current audio output

Hey, any tips on adjusting my MacBook Pro speakers (which is System Sounds/Alert Device) to 100% without changing current audio output (dropping my AirPods Pro)?
Is there native way without installing 3rd party utilities?

Here is my current ugly way to solve this:

# Capture the current output device name
current_device=$("/opt/homebrew/bin/SwitchAudioSource" -c -t output)

# Switch to built-in speakers and set volume to 100%
"/opt/homebrew/bin/SwitchAudioSource" -u BuiltInSpeakerDevice
osascript -e 'set volume output volume 100' -e 'set volume alert volume 100'

# Sleep for a delay to ensure the commands execute properly
sleep 1

# Switch back to the previous output device by name
"/opt/homebrew/bin/SwitchAudioSource" -s "$current_device"

# Switch System to built-in speakers 
"/opt/homebrew/bin/SwitchAudioSource" -t system -u BuiltInSpeakerDevice