<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_script_for_location(content, destination):
 """Create a script with the given content, mv it to the destination, and make it executable Parameters: content- the content to put in the script destination- the directory to copy to Note: due to constraints on os.rename, destination must be an absolute path to a file, not just a directory """

    temp = tempfile.NamedTemporaryFile(mode='w', delete=False)
    temp.write(content)
    temp.close()
    shutil.move(temp.name, destination)
    cur_perms = os.stat(destination).st_mode
    set_perms = cur_perms | stat.S_IXOTH | stat.S_IXGRP | stat.S_IXUSR
    os.chmod(destination, set_perms)