Screen Recording on Mac

I’m trying to record my working sessions in specific apps.
This would help me record screen and stop recording on trigger like
- Open App
- Close App

Or any shortcut to trigger screen recording (NOT Screenshot)