title: Calling Different Functions using doGet()
body: <p>The following script was provided to me from Tanaike as an answer to the earlier question posted by me <a href="https://stackoverflow.com/questions/64666605/changing-owner-of-the-sheet-irrespective-of-the-duplicator">Changing Owner of the Sheet irrespective of the duplicator
  </a>. and it worked wonderfully <br><br>
  Now, I need to call different functions and run the same as Admin on user's spreadsheet but I am getting confused in how to call them depending on the function name or any other parameter.
  <br><br>
  The existing code is:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function doGet() {
    script();
    return ContentService.createTextOutput();
  }
  
  function Protect() {
    const url = ScriptApp.getService().getUrl();
    UrlFetchApp.fetch(url, {headers: {authorization: "Bearer " + ScriptApp.getOAuthToken()}});
  
  // DriveApp.getFiles()  // This is used for automatically detecting the scope of "https://www.googleapis.com/auth/drive.readonly". This scope is used for the access token.
  }
  
  // This script is the same with your "Protect".
  function script() {
    var spreadsheet = SpreadsheetApp.getActive();
    var myValue = SpreadsheetApp.getActiveSheet().getSheetName();
    spreadsheet.duplicateActiveSheet();
    var totalSheets = countSheets(); //script function
    myValue = "DO" + totalSheets;
    SpreadsheetApp.getActiveSpreadsheet().renameActiveSheet(myValue);
    var protection = spreadsheet.getActiveSheet().protect();
    protection.setUnprotectedRanges([spreadsheet.getRange('C2:E5'), spreadsheet.getRange('C6:D7'), spreadsheet.getRange('F5:G6'), spreadsheet.getRange('B9:G18'), spreadsheet.getRange('G7:G8')])
      .removeEditors(['user1.com', 'user2.com', 'user3.com']);
    spreadsheet.getRange('G2').setValue(myValue);
    spreadsheet.getRange('G3').setValue(new Date()).setNumberFormat('dd-MMM-YYYY');
    spreadsheet.getRange('H1:H').clearContent();
  
  };</code></pre>
  </div>
  </div>
  </p>
  <p>Now, I want to call my created function <code>altrows()</code> to run when a specific button is clicked by the user and want it to run just like the above <code>script()</code></p>