I am able to export to Excel file manually.
I am creating a script, and it generates an "Unix Executable" file, and I can't remedy this.
I am making it on a Mac, but the script will be ran by a PC user. I tested on his computer and it does the same thing.
Any idea why this would be the case?