I have this script below, which works very well to duplicate a sheet and rename it from the contents of cell A3.
Now I would like to run this exact function, but on an inactive (or even hidden) sheet. It can be a duplicate with only values copied, as there is no need to copy all of the deep data.
function AddReportSheet() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
SpreadsheetApp.getActiveSpreadsheet().duplicateActiveSheet();
var myValue = SpreadsheetApp.getActiveSheet( ).getRange("A3").getDisplayValue();
SpreadsheetApp.getActiveSpreadsheet().renameActiveSheet(myValue);
}