Does this just apply to the phone app, or to the base station as well?
IIRC, the base station has a REST API and there are 3rd party apps that can control it (but I haven't touched my Hue light setup in about 5 years, and don't really use any of the smart features anymore).
for i in `seq 1 10`; do http -v 192.168.xxx.xxx/api devicetype="my_hue_app#script"; sleep 1; done