This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Powershell script arguments

New to this community so hello all!

I'm running SAM 6.2.4, and I'm fairly adept at Powershell, but I have a small problem regarding script arguments when trying to convert one of my standalone scripts into a monitor script.

For testing, I've tried various syntax but none have been successful in trying to pull an argument from outside into the script. Below is the last attempt (which doesn't work).

pastedImage_1.png

I've tried various in the script body...

pastedImage_2.png

pastedImage_3.png

pastedImage_4.png

The script runs fine but I can't seem to find the correct syntax to parse the argument.

In the last example, the Output Result is simply 'Message:'

Also, what is the separator for multiple arguments?

Can someone ease my pain.

Thanks emoticons_happy.png