Batch file to list all the methods in WMI command line tool (wmic)

@ECHO OFF



FOR /F %%a IN ('wmic alias list instance ^| FIND /v "Friend" ') DO (

   FOR /F %%b IN ('wmic %%a /? ^| FIND /i "%%a CALL"' ) DO (

       ECHO wmic %%b CALL /?

       wmic %%b CALL /?

   )

)