Which versions of PowerShell support the execution of the Hyper-V installer script?

Which versions of PowerShell support the execution of the Hyper-V installer script?

The Hyper-V installer script can be executed on PowerShell versions 5 and above.