To shutdown one machine (from power shell):
wsl --terminate Ubuntu
To kill all machines:
wsl --shutdown
Check if it was stopped correctly:
wsl -l -v
NAME STATE VERSION * Ubuntu Stopped 2