Make sure to save your work on any of the distros you are working on as it will close when you restart the WSL service. You can start WSL again by clicking on the application icon on the Desktop or ...
To know how to install WMIC on Windows 11 using the Settings app, PowerShell or Command Prompt, follow this detailed guide.
They made using PowerShell effortless.