install Windows Subsystem for Linux throught command line code example
Example 1: windows subsystem for linux
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Example 2: windows subsystem for linux
wsl --set-default-version 2