Powershell scripts for Sharepoint 2010
SPFolder folder = item.Web.GetFolder(item["FileDirRef"].ToString());
spfolder | splistitem | get folder