Hey,
for automation , which offering would you be using?
Is it Azure automation, Azure function etc or local powershell?
If you are using Azure offerings, better way would be to use managed identity to access it in automation.
According to me Azure AD account with MFA cannot be used for automation purpose and there needs to a manual intervention every time a job executed.
Switch to either Service principal auth to Managed identity