added tested and working script with windows server using WMI