An Azure service that is used to automate, configure, and install updates across hybrid environments.
I've solved the problem myself.
I came across an article that suggested the solution was to downgrade the Exchange Online Module to 3.5.0: https://www.reddit.com/r/PowerShell/comments/1f2v977/exchangeonlinemanagement_in_azure_runbooks/ and this article that explains about versions above 3.5.0 requiring PowerShell 7.4.0: https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps#windows
With this in hand and some more searching, I landed on the solution being to create a new runtime environment based on PowerShell 7.4 and then import the modules I needed: https://learn.microsoft.com/en-us/azure/automation/manage-runtime-environment
Leaving the question here incase anyone else comes across this issue.