Can automation script download file?

Can custom automation script facilitate files download? Thanks.

Yes.
You can use the built in node.js features or Axios (make sure to add it as a dependency – Node modules :: Corteza Docs)