RECORD / NUMBER A FORMULA IN A CELL, NOT TO BE DELETED GOOGLE SPREADSHEET - APPSCRIPT : I'm new to this apps script and I'm trying to create a function that leaves a formula nested / recorded inside a cell since the database is used by people who are not experts in the formulation and this would prevent them from deleting the fomulations

The problem is that the formula I am trying to record in the cell contains quotes "" and when executing the script it marks me an error, when modifying the script and removing the quotes if it records the formula but with an error (because the quotes are missing)

I hope you can help me as I see they are experts in the subject.

The sequence that I have so far is this:


function myFunction() {
  
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var sheet = ss.getSheets()[0];
  
  var cell = sheet.getRange("H1");
  cell.setFormula("=importrange("https://docs.google.com/spreadsheets/d/1boU9bEyqJkLbf895QavKEzeZ4sLle2qoqepeZeJVV8/edit#gid=0";"sucursal 0007!B4")");
  
}


[the error that you send me I understand that it is because of the quotes that are inside the formula][1]


when you remove the quotes if you save the formula on sheet 1 but with an error (because you do not have the quotes required by the formula)

[enter image description here][2]


  [1]: https://i.stack.imgur.com/UGe3O.png
  [2]: https://i.stack.imgur.com/cN1a9.png


the correct formula that I need is this:

=importrange("https://docs.google.com/spreadsheets/d/1bpUJbEyqJkALbf995QavKEzeZ4sLle2qoqepeZaJVV8/edit#gid=0";"sucursal 0007!B4")



I will thank infinitely for your support!