Hello @Ramaswami ,
Yes, you can export the JS variables in a CSV file.
You will have to use the enrichment activity to do so. But you can not use enrichment activity because there is only one javascript activity in your workflow. To make it work you will have to change the workflow to something like this.

JS Activity:

Enrichment activity:

Since you want to automate this. There are 2 ways to get the files with automation.
1) Use data extraction and create the file in Adobe server itself.
2) If you want to receive it on your emails then you can add the delivery activity. (Note to do this you will have to use the file attachment by computation)
i have added the additional activities for your reference.