Windows job fails when executed as user by the CA WA Agent.
CAWA_E_20021 CreateProcess failed due to: "C:\somejob.exe". Error code: 5
Release: 11.3, 11.4, 11.5
Component: CA Workload Automation Agent for Windows
The Windows user that is defined in the job does not have adequate permissions.
Log on to the computer with administrative privileges.
Open the ‘Administrative Tools’ and open the ‘Local Security Policy’
Expand ‘Local Policy’ and click on ‘User Rights Assignment’
Grant the following permission to the user that will execute the job.
Note: You may need to restart the Windows machine for changes to take effect.
https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/workload-automation-system-agent/12-0/configuring/set-up-security/list-required-permissions-to-run-a-job-on-windows.html