This is what I came up with this morning - it’s basically the same thing. I got stuck where it lists bluetooth devices nearby. As far as I can tell, the list order is dynamic and you can’t use the keyboard to type ahead and try to select. So I’m not sure yet how to work around it.
REM Attempt to automatically pair Flipper to Windows 10 Bluetooth
DELAY 1000
GUI r
DELAY 500
STRING ms-settings:bluetooth
DELAY 500
ENTER
DELAY 750
REM should open Bluetooth & other devices and already default to selecting Add Bluetooth or other device
ENTER
DELAY 500
REM Opens "Add a Device". Default to Bluetooth
ENTER
DELAY 500
REM now in discovery mode
REM this is a problem, because you have to use Arrows to find the device, and the order can change