If you often administer your AD FS 2.0 Federation Service using PowerShell, there is an easy way to automatically add the AD FS 2.0 PowerShell snap-in when the PowerShell console window is launched.
PowerShell loads a profile for the user when the console window is launched. We will be creating and modifying this PowerShell profile in order to automatically add the AD FS 2.0 PowerShell snap-in each time PowerShell is launched.
Set-ExecutionPolicy
Example
Set-ExecutionPolicy Unrestricted
$PROFILE
C:\Users\<username>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Add-PsSnapin Microsoft.Adfs.PowerShell -ErrorAction SilentlyContinue
Get-Command *ADFS*