This gets you close in PowerShell:
get-process | where-object {$_.mainwindowhandle -ne 0} | select-object name, mainwindowtitle
Or the shorter version:
gps | ? {$_.mainwindowhandle -ne 0} | select name, mainwindowtitle
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…