Write a suitescript.
Two options depending on how large the outputs are.
1. Write a scheduled script that submits a search-task. Then add a inbound dependency script that processes the data in the csv into the format you need and then uploads it to an sftp.
2. Write a single scheduled script that runs the search, formats the output and uploads to sftp.