Don't run it from a server schedule.
That's not what you wanted to hear, but server side scripts are very limited. You'll have to either relocate the file, from which you are importing or run this script from a robot file. (A filemaker file that connects to the hosted file as a client and runs the script when an Os task scheduler opens the robot file at a scheduled time.)
See this knowledge base article for more: