ubuntu subsystem windows 10 from cmd prompt

C++
wsl --set-default-version 2

Source

Also in C++: