"$esult" should be "$Result". https://github.com/microsoft/secureboot_objects/blob/e8d78ad34c2ea1404f31afee2223f8ee422692b8/scripts/windows/InstallSecureBootKeys.ps1#L88