Read the state from Windows
**Confirm-SecureBootUEFI** answers only on a UEFI boot. An error is information: it means legacy BIOS, a failed cmdlet or firmware without the feature.
Confirm-SecureBootUEFI
Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object Manufacturer,Model
msinfo32