I have a script that I use to automate AD and Office 365 account provisioning. Everything is working just fine.
The only "problem" is that I have a regular domain account and another account which is a Domain Admin.
Is there any way I can load and execute the AD module as another user? So that I just receive a Credentials prompt, login with my Domain Admin account and the script continues.
Right now I just run the Powershell Console as another user.