CmdID / PowerShell / Cmdlets / Confirm
Confirm-SecureBootUEFI
Confirms that Secure Boot is enabled by checking the Secure Boot status on the local computer. Windows Server PowerShell reference
From the Windows Server PowerShell reference Its page in the reference