Enable Hyper-V
Enable Hyper-V from an elevated PowerShell prompt with one line.

Open PowerShell as an administrator, copy paste the below line.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
You will be prompted for a reboot if features are not already enabled. Press Y to reboot. Press N to reboot later.
For documentation on Enable-WindowsOptionalFeature see: Enable-WindowsOptionalFeature (DISM) | Microsoft Learn
Comments
Comments are GitHub Discussions, loaded on request.