lib/ms-task.js
function kill( proc, callback ){
    var arg = isNumber( proc ) ? '/F /PID ' + proc : '/F /IM ' + proc;

    if ( isNumber( proc ) || isString( proc )){
        exec( taskKillPath + arg, function( err ){
            if( callback ) callback( err )
        })
    } else {
        callback( new Error( 'The first kill() argument provided is neither a string nor an integer (not a valid process).' ))
    }
}
function kill( proc, callback ){
    var arg = isNumber( proc ) ? '/F /PID ' + proc : '/F /IM ' + proc;

    if ( isNumber( proc ) || isString( proc )){
        exec( taskKillPath + arg, function( err ){
            if( callback ) callback( err )
        })
    } else {
        callback( new Error( 'The first kill() argument provided is neither a string nor an integer (not a valid process).' ))
    }
}
function kill ( proc , callback ) { var arg = isNumber ( proc ) ? '/F /PID ' + proc : '/F /IM ' + proc ; if ( isNumber ( proc ) || isString ( proc ) ) { exec ( taskKillPath + arg , function ( err ) { if ( callback ) callback ( err ) } ) } else { callback ( new Error ( 'The first kill() argument provided is neither a string nor an integer (not a valid process).' ) ) } }
Kill a given process name or PID
Kill a given process name or PID