This task can be performed using ProcessSpy
Monitor macOS processes like a pro
Best product for this task

ProcessSpy
dev-tools
Monitor macOS processes, command line arguments, open files, run shortcuts on process/start finish, find process by clicking mouse anywhere on the screen
What to expect from an ideal product
- Instantly identify any running process just by clicking on it.
- View detailed command line arguments for the selected process.
- Access information about open files associated with the clicked process.
- Trigger customized shortcuts upon process start or completion.
- Seamlessly integrate with macOS to enhance workflow efficiency.