I want to use something like that:
$allTask = Get-Task | where {$_.Id -match $_.Id}
but in this command both $_.Id are reference to the Get-Task task's
and I what that the second one will refer to the $allTask task's
for example :
$allTask=($task2,$task3)
Get-Task = ($task1,$task2,$task3,$task4)
now I what to get only $task2,$task3 from Get-Task and insert them to $allTask
How I can do this command?
thanks