This is very doable and you have a bunch of different options.
- Use an XML file that sets the outage flag.
- Login an agent to an outage queue and check the script for outage queue being staff.
- Go to an API to check an outage flag.
My recommendation would be to use an XML file which has an outage flag and an outage prompt to play. The flag can be toggled on and off and a new outage message can be recorded via another script. Then the main script checks the flag and then plays the outage message in the file. There are a ton of resources out there that show how to read an XML file.
david