Trying to see if I am in UEFI or BIOS from WinPE running from an HTA. My starting point below:
Found the below as my solution that works :)
Running in mode