Passing parameters to a scriptblock seems to be an issue at the moment.
Consider a simple scriptblock
Invoke-Command -ScriptBlock {Get-Process}
How can you modify that to parameterise the processes that are returned.
Its a two step process. Add… Read the full text.