What if you want to execute Exchange commands/Cmdlets from a script? Or you just hate the ugly Exchange management shell (like me) and want to use the regular (blue) PowerShell window?

Make sure that you have installed the management tools of Exchange. The only thing you need to do next, is load all the Exchange snapins into your PowerShell session and you’re good to go!

Use this command to load all the Cmdlets you need for Exchange:

Add-PSSnapin *exchange*