I am attempting to exit a script at the end of reading each folder, and then re-start on the next folder however I cannot seem to get it to operate properly. I get the error The Selected Function Cannot Be Found when the trigger is generated.function Update_Sheet(folder) {  var Script_Properties = PropertiesService.getScriptProperties();  var id = folder.getId();  var spsheet = SpreadsheetApp.getActiveSpreadsheet();  var sheet = SpreadsheetApp.getActiveSheet();  var continuationToken = Script_Properties.getProperty('FILE_CONTINUATION_TOKEN');  var iterator = continuationToken == null ?  DriveApp.getFolderById(id).getFiles() : DriveApp.continueFileIterator(continuationToken);  var output = [];  while (iterator.hasNext()) {    var file = iterator.next();    var name = file.getName();    var urllink = file.getUrl();    var foldername = file.getParents().next().getName();    var lastupdated = file.getLastUpdated();    output.push([name, foldername, urllink, lastupdated])  }  if (output.length) {    var lastRow = sheet.getLastRow();    sheet.getRange(lastRow + 1, 1, output.length, 4).setValues(output);  }   var subfolders = folder.getFolders();  if (subfolders.hasNext()) {    ScriptApp.newTrigger(Update_Sheet(subfolders.next()))    .timeBased()    .after(5000)    .create();  }    if (iterator.hasNext()) {    Script_Properties.setProperty('FILE_CONTINUATION_TOKEN', iterator.getContinuationToken())   }   else {    Script_Properties.deleteProperty('FILE_CONTINUATION_TOKEN');  }}The only issue I am having is exiting and re-entering the script after each folder has been cataloged. Any assistance in this would be greatly appreciated.
Trigger Issue The Selected Function Cannot Be Found
google spreadsheets;google drive;google apps script