I know not answering the specific question as such but if you want to automatically populate a spreadsheet with the ISO week number then set the value in the cell to the google sheet function =WEEKNUM(TODAY(),21) in your App Script. A workaround for google sheets.
cell.setValue("=WEEKNUM(Today(),21)");