Please see - WMI - Windows Management Instrumentation - BATCH SCRIPTS