Today I found interesting thing that Connect-MsolService is not working even after installing Microsoft Sign-in assistant and Install-Module MSOnline, AzureAD AzureRM but still it is getting the same error as shown in the given snapshot!!
MSOnline Cmdlet not working
View best response
Do you have the module loaded? Do a simple Get-Module MSOnline, or Get-Command Connect-MsolService
Hope you are receiving this error since you have opened the 32 bit version (X86) of Powershell console. Try the normal Powershell console (x64) to resolve this problem.