Can I pass a scriptblock through the pipeline? For example, instead of
Invoke-Command -ScriptBlock {Get-Job}
Can I do (conceptually) the following?
{Get-Job} | Invoke-Command -ScriptBlock $_
Can I pass a scriptblock through the pipeline? For example, instead of
Invoke-Command -ScriptBlock {Get-Job}
Can I do (conceptually) the following?
{Get-Job} | Invoke-Command -ScriptBlock $_