Hi Wilson,
PlatformRegisterOptionsAndKeys () is used to register the platform boot options and its hotkey.
You could comment out the following line in UEFI to prevent entering to UEFI menu.
edk2-nvidia/Silicon/NVIDIA/Library/PlatformBootManagerLib/PlatformBm.c at r35.3.1-updates · NVIDIA/edk2-nvidia · GitHub