Toggle BT on/off in Ventura; ideally when opening and closing MBP

A few years ago I found and posted a way to toggle BT and Wifi on/off. It no longer works in Ventura and am wondering what I might do to update it.

The idea is to prevent my MacBook from broadcasting BT signals when it is (say) in a car. Thieves have ways to detect the signal even if the laptop is closed and in a car.

Maybe it's overkill. I don't want to take the chance though!

tx

These work in Ventura for me.

Bluetooth On:Off.kmmacros (31.0 KB)