I had this issue and couldn´t find any answer. The issue was that I was trying to use Azure cdmlets to connect to O365 via c# code, but I couldn´t get the
""The term is not recognized" error when you try to run administrative Windows PowerShell cmdlets in Office 365"
After hours of searching and trying I found out that on a x64 server the MSOnline modules must be installed for x64, and some programs that need to run them are using the x86 PS version, so they will never find it.
[SOLUTION] What I did to solve the issue was:
Copy the folders called
MSOnline Extended from the source
to the folder
And then in PS run the
Import-Module MSOnline, and it will automatically get the module :D