I am new to scripts and have managed to piece together something functional from stuff cannibalized from scripts attached to tools that others have built. 
My current issue is I am using multiple scripts like the one below to change the formulas in multiple cells, but i am using Importranges for each to reference another tab in the current sheet. I think this messes up the performance pretty badly. Is there a script formula where I can just change the cell value (g15 in this case) to "=new assembly import!ap10" like you would put in a normal cell not in a script? I cant get the syntax right maybe? any help would be appreicated since right now i can only use formulas which seem innefficient. 

```
spreadsheet.getRange('g15').activate();
spreadsheet.getCurrentCell().setFormula('=IMPORTRANGE("1raHB4DC5lkdreUiMe9GOpNFQRi4qIvEhLpzF4QpRYL4","new assembly import!ap10")'); //assembly errors

```