# Import credentials from AdminCredential.xml $cred = Import-Clixml -Path "AdminCredential.xml" # Start a new MMC window and add the Active Directory module with saved credentials Start-Process C:\Windows\System32\mmc.exe -ArgumentList C:\Windows\System32\dsa.msc -Credential $cred