Currently working on a project for Avanade with Forefront Identity Manager 2010 R2 and making my way arround PowerShell. As You may not know, there is no PowerShell module for FIM 2010 R2 at all (except the FIMAutomation snippet but limited to the FIM Portal part).
There is a snippet available from the FIM Portal, called FIMAutomation,??which will all you to manage the configurationof the FIM Portal part.
In order to make a small PowerShell module for the project I found out that you may use WMI Objects as a workarround.
Here is the WMI Provider Reference from 2009, but until Microsoft Identity Manager is released (and maybe after), the informations are still relevent for scripting FIM.