I ended up having to use an executable along with my powershell script to get this done. That can be found here http://www.microsoft.com/en-us/download/details.aspx?id=8279 for the dcom permissions. Which there is a similiar answer found here https://serverfault.com/questions/555745/change-a-dcom-applications-identity-with-a-script.
This does not work though on 2012 r2 servers using the new .Net Framework.