MIDI Script - Mute/ Unmute Toggle

you may want to to check for a couple of things in your setup:

ensure the MIDI Remote is configured to use Toggle:
image

and the external device is NOT set to toggle