In the Task Manager, go to the Processes or Details tab, locate the program you want to end, right-click on it, and select End Task or End Process. This will terminate the program and free up system resources.