Compared to all the behind-the-scenes tasks that are performed when you work with the Exchange Management Shell, the Forefront Management Shell is very simple.
When you select the related menu item, Windows runs PowerShell and loads the FSSPSnapin. Because PowerShell is run with no security context, you won’t be able to perform administrative tasks.
To resolve this, you need to right-click the Forefront Management Shell and then select Run As Administrator to open an elevated, administrator shell. If you want to run Forefront commands while work¬ing with the Exchange Management Shell, all you need to do is type the following command:
Adding this command to your scripts allows you to work with Forefront Security in your scripts as well.