title: Google Apps Script - Calling a function involving moving files across Google Share Drive folders
body: <p>I'm not familiar with Google Apps Script and I'm having trouble figuring out how to call a function.</p>
  <p>The below function is intended to move a file from the Google Shared Drive folder its current in to a new folder with the Google Shared Drive.</p>
  <pre><code>function moveFilesBetweenSharedDrives({parentFolderId, destinationFolderId, fileId }) { 
    const data = Drive.Files.update({}, fileId, null, {
      addParents: destinationFolderId, 
      removeParents: parentFolderId, 
      supportsAllDrives: true, 
      fields: 'title, embedLink',
   });
   console.log('File Moved', data.title, data.embedLink);
  }
  </code></pre>
  <p>I tried to call this function in a macro style with the below code but that didn't work. In the google apps script page, a syntax error would show up saying: &quot;Syntax error: SyntaxError: Invalid or unexpected token line: 11 file: Code.gs&quot;:</p>
  <pre><code>moveFilesBetweenSharedDrives(1FaTWCQc-asflsdfsfAngr, 1setTISPSknysd-sl3UepcFnptDCA, 1R9gLCWpsfasafsdf-9QZwef44HKLCI)
  </code></pre>
  <p>What am I doing wrong? I had selected the function and inputted the Shared Drive Folder Ids for the original folder, destination folder, and the file ID. I've also enabled the Drive API, so I'm unsure how to properly call the function.</p>