upgrade wsl 1 to 2 on windows 10 microsoft code example
Example: update to wsl2 windows 10
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart