If it was direct to Powershell, you could pipe objects directly into remote cmdlets.
Reply on news.ycombinator.com