Using same user with same permission to execute the job from FDM and from Automic UC4 agent.
It seems that when the job is run via UC4, the scramble values for FIXED function are not being retrieved, also there is an additional log(as below) entry at the beginning and deleteFile commands are not triggered.
2023-01-26 10:03:42.311 Thread-2 - Interrupt request detected - the masking will be stopped
Release : 4.10
Working as designed for batch job execution.
FDM interrupts the masking if its standard input is closed and UC4 agent is doing exactly this after the process is spawned.
Use INTERRUPTIONDISABLED=Y in the options file for the batch(UC4) masking jobs ( can use it for the interactive jobs also but in that case the job can't be interrupted by pressing CTRL+Z).