This script is needed to avoid a DR server manual restore and bring the DBs online.
The script I want it to do
1- by the time of emergency, SP will run and check the job history of restored jobs and identify which need to bring online(if it all then it will do for all)
2- after it identified which need to brought online
- click the restore job
- disable the restore job
- it will bring the database online.