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