CloseApp was originally written to automatically close Acrobat after use when scripting from dos .bat files, but CloseApp can used for any windows application or window!
CloseApp enumerates through multiple windows and closes all matches & is very easy to use.
Example dos usage: CloseApp.exe "Adobe Acrobat"