If you are using windows 11, the feature is disabled by default. Simply type "optional features" in the windows search field, "add an optional feature" will be at the top, click "view features", then search for WMIC, check the box to add the feature. Then make sure that it is added to your system's "Path" as stated above.