this is continues from the previous thread .can i pass a function as a script to a new runspace and pipeline .The function takes the global variable of the current thread.
function starttask(){param($listofDevices)...}
function MainRun(){
....create runspace
$script="& starttask $listofDevices"
$pipeline.CreatePipepline($script)
...
}
can we do this way?i tried it but it shows only running but it does nothing
Thanks