logoff wsl2 code example
Example 1: restart wsl
Get-Service LxssManager | Restart-Service
Example 2: wsl set default distro
wsl -s <DistributionName>, wsl --setdefault <DistributionName>
Get-Service LxssManager | Restart-Service
wsl -s <DistributionName>, wsl --setdefault <DistributionName>