Cant'get access token using Graph API using certificate from Powershell
I'm trying to follow this article https://learn.microsoft.com/en-us/azure/active-directory/reports-monitoring/tutorial-access-api-with-certificates where we basically use a cert to access the Graph api using ´ Get-MSCloudIdMSGraphAccessTokenFromCert ´.
I've configured everything that the article ask for but when I reach the point to make the call to obtain the access token using
Get-MSCloudIdMSGraphAccessTokenFromCert -TenantDomain "mydomain.com" -ClientID 363917dc-e4ea-4ee4-9277-a58aa5095227 -Certificate (dir cert:\CurrentUser\My\CERTFOOTPRINT) I get the following error
InvalidOperation: Unable to find type [AdalHelper].