Terminates any running instances of Notepad.exe
strComputer = "."Set objWMIService = GetObject("winmgmts:" _& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")Set colProcessList = objWMIService.ExecQuery _("Select * from Win32_Process Where Name = 'Notepad.exe'")For Each objProcess in colProcessListobjProcess.Terminate()Next
This is a VB Script, this can be used by saving the file in .vbs file