how do i write the result variable to an output file and download that to my local machine in this script.
something like gs.writeFile("path_to_localFile.filetyp