Also it may be easier to use Python via https://bleak.readthedocs.io/en/latest/ or espruino-cli which recently got better with Windows support and BLE connections work mostly just fine on Windows 10/11 now
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Also it may be easier to use Python via https://bleak.readthedocs.io/en/latest/ or espruino-cli which recently got better with Windows support and BLE connections work mostly just fine on Windows 10/11 now