When launching a specific app, the Task automatically enables Do not Disturb mode until the app is no longer running in the foreground. This is really helpful when you try to concentrate.
In this example, I'm using it together with Duolingo (learning languages) and Simply Piano (learning piano).
None
PerApp_Profile.prf: Defines the apps that should use this feature
Set_DnD.tsk: Enables Do not Disturb
Unset_DnD.tsk: Disables Do not Disturb
Profile: AutoDnD (2)
Restore: no
Application: Duolingo or SimplyPiano
Enter: Set DnD (3)
A1: Do Not Disturb [ Mode:Alarms ]
Exit: Unset DnD (5)
A1: Do Not Disturb [ Mode:Allow All ]