Verify whether Installed OS is UEFI or Legacy

Hi, Here’s my question :
Verify whether Installed OS is UEFI or Legacy via Powershell.

Regards,
JB

https://gallery.technet.microsoft.com/scriptcenter/Determine-UEFI-or-Legacy-7dc79488