macOS / binaries /

lsappinfo

/usr/bin/lsappinfo
Control and query coreapplicationservices about the app state on the system

lsappinfo - control and query CoreApplicationServices about the app state on the system. There are various commands availabe for lsappinfo.

source: man