Usage
Get-BluetoothBattery -Name 'Sony'Parameters
-Name- Optional substring to filter accessory names; defaults to all Bluetooth devices.
Returns
Name, BatteryPercent, InstanceId.
Note
Uses PnPUtil XML on Windows builds supporting this format (verified on build 26200), targeting BTHENUM nodes. BLE-only devices are not covered. The accessory must report a battery value to Windows; absent reports produce no row.