I am using Windows 11 Pro, and Powershell version 5.1
I am following this wiki to setup a VM https://techcommunity.microsoft.com/t5/educator-developer-blog/step-by-step-how-to-create-a-windows-11-vm-on-hyper-v-via/ba-p/3754100
But I encounter an error when I run this Line :
Set-VMFirmware -BootOrder "PCVM" -VMName "PCVM"
Set-VMFirmware : Cannot bind parameter ‘BootOrder’. Cannot convert the “PCVM” value of type “System.String” to type “Microsoft.HyperV.PowerShell.VMComponentObject”.
Do I need to upgrade to PowerShell 7?