I have a similar desk and I was going on a similar path before I noticed the company that made the desk’s motor has a BLE adaptor for 15$ which solved my problem completely.
My desk was made by LINAK, who also provides some IKEA standing desks too. Here’s the adaptor if anyone is interested: https://www.linak.com/products/accessories/bluetooth-adapter...
I use a script that’s triggered with a keyboard shortcut which I find super cool.