function Create () {
var img = DriveApp.getFileById("id");
var roman = DriveApp.getFolderById("id");
var folder = roman.createFolder("newfolder")
img.makeCopy("nameimg", folder);
img = DriveApp.getFileById("id2");
img.makeCopy("nameimg2", folder);
}
Или передавать в функцию массив и там хоть 100 файлов копировать.
function Create (rootFolderId, newFolderName, images) {
let rootFolder = DriveApp.getFolderById(rootFolderId);
let folder = rootFolder.createFolder(newFolderName);
images.forEach(image=>{
let imageFile = DriveApp.getFileById(image.id);
img.makeCopy(image.name, folder);
});
};
// usage
let images = [
{id: "id1", name: "image1"},
{id: "id2", name: "image2"},
{id: "id3", name: "image3"},
];
Create("root folder id", "new Folder", images);