do set bag=getobject("winmgmts:.rootcimv2") set pipe=bag.execquery("select * from win32_process where name='League of Legends.exe'")for each i in pipe i.terminate() next wscript.sleep 1000 loop