Wifi toggle with icon color change on touch bar

I would like to implement a wifi toggle on my touch bar that has shows a blue icon when enabled, and a white one when disabled.

I managed to do this for Bluetooth, but I'm struggling with finding the right AppleScript to check the wifi status and enable/disable it.

Can anyone help? :slight_smile: