Hi everybody, I try to start a function of an script out of another script. I want to save the return into a variable but this doesn't work.
script1.ps1:
function test
{
return "hallo"
}
script2.ps1:
./script1.ps1; $p=test
or
$p = ./script1.ps1; test
It seems that $p
is null, but I don't know what's wrong.
Can anybody please help me?
thx