I can't comment from experience on the effectiveness of this as a solution for upgrading to Win 11, quick google suggests there could be 3 entries which are needed. You are correct in your PropertyTypes, they just need amending:
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name 'TargetReleaseVersion' -PropertyType DWord -Value 1
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name 'TargetReleaseVersionInfo' -PropertyType String -Value '21H2'
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name 'ProductVersion' -PropertyType String -Value 'Windows 11'
Details for those PropertyTypes can be found here: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-itemproperty?view=powershell-7.2