Why script completed successful when executed manually on Operating System machine but failed when submit through Control-M/Agent as a job?