How do I consolidate Dde powershell with Excel?

I would like to automate a task using DDE based on COM. I'll be using Powershell to gather system data then consolidate the data in Excel. I'm always having an error of "error 0x80010001 (RPC_E_CALL_REJECTED)". How do I consolidate dde powershell with excel? I'm using Microsoft office 2010 and Windows 7.
