Hi,
So, I used “Run power shell script” not “invoke powerwhell”. I works for me.
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