You may wish to try
Either capture the process id you want to kill via stdin or replace $pid with the process id.
echo kill -9 $pid`;
echo kill -9 $pid