@WINCLASS[classname] : Returns the window title of the first window with the specified class name, or an empty string if no windows match.

 

Example:

 

echo %@winclass[consolewindowclass]

TCC Prompt