I am running a Perl script that calls a powershell script. Is there a way for me to get a return value from this? I've tried something similar to
my @output = "powershell.exe powershellscript.ps1;
foreach(@output)
{
print $_;
}
and I get nothing out of it. Do I need to add something to the powershell script to push the return values?