We are able to setup device data and print the output to excel. But how to code that logic in a program script and send an excel output file?