Get the output from powershell script (SOLVED)

Hi,

So, I used “Run power shell script” not “invoke powerwhell”. I works for me.
image

My script is pretty simple:

$ProcessActive = Get-Process outlook -ErrorAction SilentlyContinue
if ($ProcessActive -eq $null) {
return $a = “False”
} else {
return $a = “True”
}

See the screenshot below:

Hope it will help.
Best Regards,
Kamil

6 Likes