use the desktop.GetChildren() function and the do a for each loop to get the single window. The check via if-condition if the caption of the window is the one you're looking for. Use the MatchStr() function. If your process is found, kill the process.
If you wait until monday, I'll be able to give you a code-example.
"TASKLIST" is a DOS command to retrieve all the tasks which are currently running.
/FI is one of its paramter which displays a set of tasks that match a given criteria specified by the filter. In our case the filter is "IMAGENAME eq cmd.exe" where eq means "equals" & IMAGENAME is a filtering parameter.
Read more abt it here .... http://commandwindows.com/tasklist.htm
chr(34) is a SilkTest function which returns the character that corresponds to an ASCII code. 34 is the ascii code for double quotes.
Kindly run this and you wud know what is happening ...
print("tasklist /FI "+chr(34)+"IMAGENAME eq "+sProcessName+chr(34))
Finally I am redirecting the command output to lsOutput.