Invoke-Command can't work in the pipeline like that.  I wonder if Joel wrote his own version of Invoke-Command that does support pipeline parameters - it actually makes some sense to support.