The end command takes the following form:
The command terminates Windows services or processes OBJECTNAME. If OBJECTTYPE is specified, only objects of that type are matched. OBJECTTYPE may be one of service or process.
Otherwise, the command searches for object types in the following order:
All matching objects of a specific type are terminated. However, no attempt is made at matching against further object types.
In all cases, the object space is searched using multiple match criteria.