How To Create Multiple Copies of a File in Google Drive - Adapted

🧩 Syntax:
// Adopted from https://www.youtube.com/watch?app=desktop&v=915eJT092Sw by Stephan Ainley

var studentNames = [ //Copy the 'Student 2' row as much as you'd like to add students
  ['Student 1', 'Folder ID to save the file to'],
   ['Student 2', 'Folder ID to save the file to'],
   ['Student 3', 'Folder ID to save the file to']];

var fileName = "2023-08 Monthly Review - ";  //File name start

function copyDocs() {
  for(i=0; i<studentNames.length; i++){

    var drive=DriveApp.getFileById('File ID of doc to copy');
    var destination = DriveApp.getFolderById(studentNames[i][1]);
    drive.makeCopy(fileName + studentNames[i][0], destination);
    console.log(fileName + studentNames[i][0])
  }
}