Can I catch an event if I move out of Bluetooth range

My Mobile phone Bluetooth is paired with my Laptop. I am trying to write a power shell script which can catch an event if I move out of Bluetooth range. Any leads on this idea?