Connect Bluetooth with icon shortcut?

Hello, I try in vain to create a small icon with the bluetooth logo that turns blue once the bluetooth and activate.
I tried to take ready made icons in presets find here but it does not work ....

it only works in one way on my menubar when I activate the bluetooth ca activates it on the icon of my touchbar but not the reverse of the touchbar to mac osx ...
the apple script is:

do shell script "system_profiler SPBluetoothDataType | grep -i "Power: On""
on error
return false
end try

thank you mutch !

sorry for my bad english !