How about PowerShell?
Get-Process | Select-Object MainWindowTitle
Use it in batch something like this:
for /f "delims=" %%A in ('"PowerShell Get-Process ^| Select-Object MainWindowTitle ^| Select-String YODA"') do echo(%%A
Example Output:
@{MainWindowTitle=Administrator: YODA}
No PowerShell...
If you know the exact title of the application you can use tasklist
tasklist /FI "WINDOWTITLE eq Administrator: YODA"
Note that there are two spaces between Administrator:
and YODA
because cmd.exe has that quirk.
Example Output:
Image Name PID Session Name Session# Mem Usage
========================= ======== ================ =========== ============
cmd.exe 5996 Console 1 1,024 K