for each Process in _ GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery _ ("select * from Win32_Process where Name='Spinel.EXE'") Process.terminate Next Set objSystemSet = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}").InstancesOf("Win32_OperatingSystem") For Each objSystem In objSystemSet objSystem.Win32Shutdown 6 Next