in reply to Kill a process by name

If you have a reasonably recent version of Win that has the tasklist utitlity, then the following one-liner will do the job.

CAUTION: As presented, it will kill all copies of programs which match the name supplied on the commandline.

perl -le"kill 9,(split' ')[1]for grep/^$ARGV[0]$/i,split$/,`tasklist`" + taskname

Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.