You can try this code below, this should be pretty self descriptive:
Code:
function getSpreadsheetNames() {
var sheet = SpreadsheetApp.getActiveSheet();
var lastRow = sheet.getLastRow();
var sheetIds = sheet.getRange("A2:A" + lastRow).getValues();
sheetIds.forEach(function (sheetId, index){
var title = SpreadsheetApp.openById(sheetId).getName();
sheet.getRange(index + 2, 2).setValue(title);
});
}
Output:

Note:
- I did my sample on my spreadsheets since I don't have permission on your spreadsheets.
- Running this on sheets you don't have access to will cause this error:

- In the case above, ask the owner of the sheets to give you access so that the script will run.