Thank you for posting.
What does $varpath actually evaluate to? It sounds like it may be getting set to the wrong value. What happens if you type the explicit path to the Data > Documents folder on the server instead of using Get(DocumentsPath)?
It evaluates to.
filewin:/C:/Program Files/FileMaker/FileMaker Server/Data/Documents/order-data.csv
filewin:/C:/Program Files/FileMaker/FileMaker Server/Data/Documents/NeedSpecs.xls
respectively for each script.
I have manually made the path instead, and it still results in the same errors.