code: def copy_script(self, filename, id_=-1):
          
          if ("jss" in self.connection.keys() and
                  self.connection["jss"].jss_migrated):
              self._copy_script_migrated(filename, id_, SCRIPT_FILE_TYPE)
          else:
              basename = os.path.basename(filename)
              self._copy(filename, os.path.join(self.connection["mount_point"],
                                                "Scripts", basename))
docs: Copy a script to the repo's Script subdirectory.
  
          Scripts are copied as files to a path, or, on a "migrated" JSS,
          are POSTed to the JSS (pass an id if you wish to associate
          the script with an existing Script object).
  
          Args:
              filename: Path for file to copy.
              id_: Int ID, used _only_ for migrated repos. Default is -1,
                  which creates a new Script.