This code make a copy of the given file, gives it a new name and moves it to destination.
DriveApp.getFileById(fileId).makeCopy(fileName,fileDestination)
How can I have the same function when I have all my files on Shared Drive? I have activated the Drive API and everything works fine except the code above!