Generic Thermostat update target temp

I have setup a generic thermostat, but i have one problem :wink:
I control my aircon with commands, so that works fine. But i want to send an update from my target temperature (set in HA) to my aircon. (The command exist already)

bash /config/scripts/airco.sh IPADDRESS set setpoint ***
The tripple *** is for the target temp.

Can somebody help me?