Run Script remotely via HA Button

Hey guys

I try to mute / unmute my intern Microphone (MacBook Air late 2020, M1) and turn on/ off a light at the same time via HA. Therefore I already wrote two Apple Scripts: One to mute and one to unmute the Mic.

tell application “System Events”

set volume input volume 0

end tell

I exported it as an application running on my Mac. Now I want to run this app on my Mac via pressing a button at my HA UI on any device. Any suggestions how to do this?