Can you clarify what you're trying to achieve? Are you trying to import records from an XML source by running a script on the server?
There are significant limitations to how you can use Import Records and Export Records in a Server schedule.
See this knowledgebase article: http://help.filemaker.com/app/answers/detail/a_id/7035/kw/server%20import%20records
The work around is to do this via an OS scheduling utility such as Windows Scheduled Tasks to open a "robot" FileMaker file that then performs your script from a Client context instead of as a server schedule.