use linux subsystem windows 10 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
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2