To see the answer to this question, please see https://comm.support.ca.com/kb/exporting-and-executing-with-script-directory/kb000072378