I try to call function inside job. It does not work. Is it possible to use function inside job or not. I hope you can help me. Here is my example code.
Start-Job -Name ForestJob {param($v01,$v02)
$line = @()
function test {
return "testvalue"
}
$t = test
$line += $t
} -ArgumentList $var01, $var02