I have a few basic PowerShell scripts (password expiry email, new user, leavers etc) that I run on a regular basis. The expiry email is automated. However, with MFA, this stops as well as any other script I want to run on a schedule without any user interaction.
Is there anyway around this? I've seen app passwords mentioned but will this cover a log in to both MSOnline and Exchange Online? Also, I've seen that app passwords are being depreciated soon.