Apple TV/Protect Automation

I am working on an automation that when a person is detected at my front door my ATV will pause, open Protect for 1 minute, and then return to the previous app, and play again. How do I capture what app was being played and then return to that app?