[Windows.Devices.Bluetooth.BluetoothLEDevice,Windows.Devices.Bluetooth,ContentType=WindowsRuntime] | Out-Null $op = [Windows.Devices.Bluetooth.BluetoothLEDevice]::FromBluetoothAddressAsync(232857434550649) while ($op.Status -eq [Windows.Foundation.AsyncStatus]::Started) { Start-Sleep -Milliseconds 100 } $dev = $op.GetResults() Write-Host ("Dev: " + $dev) if ($dev) { Write-Host ("ConnectionStatus: " + $dev.ConnectionStatus) $gattOp = $dev.GetGattServicesAsync([Windows.Devices.Bluetooth.BluetoothCacheMode]::Uncached) while ($gattOp.Status -eq [Windows.Foundation.AsyncStatus]::Started) { Start-Sleep -Milliseconds 100 } $gatt = $gattOp.GetResults() Write-Host ("Gatt status: " + $gatt.Status + " Services count: " + $gatt.Services.Count) }