Start PowerShell as an administrator.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
And then, you need to restart your machine, so hit y
Start PowerShell as an administrator again.
Now, that you have WSL enabled, you can install Kali Linux just by going to the
Microsoft Store. Or, you can install it via