Get return value from PowerShell Script - On Prem

Get return value from PowerShell Script - On Prem

Dear all,

I just would like to understand how to get the result returned from a PowerShell Script.
I have tried both: return $variabl and Write-Host, but it does not work at all.