switch installed linx to wsl2

C++
wsl.exe --set-version Ubuntu 2dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartEnable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Source

Also in C++: