In general terms, you need to loop through all of the entities (up to GetEntityCount) and check the targetname of the each entity. I believe you can use GetEntPropString to find the the m_target property. If the string returned matches your name (example: blobb) then use the AcceptEntityInput function to send the input (such as kill).