PSCommand commandToRun = new PSCommand(); commandToRun.AddCommand(\"Connect-MsolService\"); commandToRun.AddParameter(\"Credential\", new PSCrede
I had to do this in that order:
Install-Module MSOnline Install-Module AzureAD Import-Module AzureAD