Here’s an example of an OfficeScript that creates a new workbook in Excel: function main(workbook: ExcelScript.Workbook) { // Create a new workbook let newWorkbook = ExcelScript.Workbook.createEmpty(); // Save the new workbook newWorkbook.saveAs("NewWorkbook.xlsx"); // Close the new workbook newWorkbook.close(); } To use this OfficeScript, follow these…