Cannot generate a Windows PowerShell object for a ScriptBlock dereferencing variables undeclared in the param(.) block. Name ...