title: How to connect and disconnect a Bluetooth device with a PowerShell script on Windows?
body: <p>I have a very slow and relatively cheap computer. When I turn it on, I turn on my Bluetooth mouse. The mouse works fine for a few seconds, then the connection is broken. If I then reconnect the mouse, it works as it should be until I turn it off again.</p>
  
  <p>My goal is: I would like to write a PowerShell script that will reconnect the mouse automatically, but I don't know how it works with Bluetooth in PowerShell. Could anyone help me with that?</p>