I wasn't aware that UEFI provided an execution environment. Are applications sandboxed or restricted in any way?
[1] https://trmm.net/Thunderstrike [2] https://www.linuxboot.org [3] https://trmm.net/LinuxBoot_34c3
And it’s mainly used to execute OS-loaders.
Some firmwares even come with a MS-DOS like UEFI shell.