Sql Server Automated Restore Script, Automate the process by querying system tables to retrieve necessary information.