Only one command is needed to close another application. Simply specify the name of the window caption within the quotation marks.