How to send variables/arguments in powershell script?

Hey guys,

For powershell script, I am looking to send variables/arguments in there to be able to use dynamic values.

I tried to use variables/arguments section in properties panel of Invoke powershell script and then use those in the script.

But it doesn’t seem working.


working with variables:

Script using the variables:

  $status = wget $url | % {$_.StatusCode.ToString()}
catch [exception]
   $status = $_.Exception.Message.ToString()

Make sure IsScript checkbox is selected in the properties panel, if it’s a script.

and if it’s a commandlet, then keep it unchecked