Azure automation

can't these be just parameters to the script? Since you are running the script you could generate the file on the file...