The script gets input from BackupRestoreDetails.csv file which has the details on SourceURL, DestinationURL, DatabaseServer, DatabaseName . The script and input CSV file format is attached.