I have a couple of PowerShell scripts that can run using Windows PowerShell with no issue.
As soon as I run them in VS Code on the same computer, I get "Connect-MsGraph' is not recognized as the name of a cmdlet,
I have installed the same Microsoft.Graph.Intune and other relevant AAD modules for both Windows PowerShell and VS Code.
Any idea why I can't run them in the VS Code?
Thanks