It would be helpful to understand your application a bit more. The WinXP command that does this is taskkill.
http://www.tech-recipes.com/rx/446/xp_kill_windows_process_command_line_taskkill/

On my XP machine >taskkill /? gives a lot of help

In general "killing" another process is a very dangerous thing to do as this can leave corrupted files, etc. The normal way that this is done is via signals which is sort of a very simple message that just says: hey, shut yourself down". The program that you want to shut down has to have code that understands and does something with this signal. But, yes you can do anything that you could do yourself via a Perl program.

Update: I played around with this a bit. It appears to work completely "as advertised". There appears to be a "polite signal" and also the /F option which I figure is like unix kill -9 PID, "you are gone".

C:\Projects>notepad C:\Projects>taskkill /IM notepad.exe SUCCESS: The process "notepad.exe" with PID 5456 has been terminated.

In reply to Re: Close EXE by Marshall
in thread Close EXE by Selvakumar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.