Azure AD Module – This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded

Se avviando il Modulo PowerShell Windows Azure Active Directory compare il seguente errore:
Import-Module : Could not load file or assembly ‘file:///C:\Windows\system32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll’ or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
At line:1 char:14
Import-Module <<<< MSOnline
CategoryInfo : InvalidOperation: (:) [Import-Module], BadImageFormatException
FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Commands.ImportModuleCommand
possiamo risolvere la problematica installando Windows Management Framework 3.0 scaricabile da questo link: https://www.microsoft.com/en-us/download/details.aspx?id=34595