Run a Google Sheets script on all tabs except one

Thanks in advance for the help. I am currently running a Google Sheets script which applies to one tab called “Tab 1”. It copies a range across to the next free column as follows:

function copyAcross() {
  var ss = SpreadsheetApp.getActive();
  var namesSheet = ss.getSheetByName('Tab 1')
  var names = namesSheet.getRange('A9:A12').getValues().filter(function (r) {return r(0)})
  namesSheet.getRange(9, namesSheet.getLastColumn() +1, names.length, 1).setValues(names)

I would like this script to run on ALL tabs EXCEPT one tab called “Targets”.

Here is an example of the Sheet: