I'm trying to get Command-Arguments in a self-made script in Powershell.
On Python it is:
What is it in Powershell? Because I tried it with:
But this didn't worked on my self-made script.
Well, maybe it is the age of the post, but the "there is some example code provided" does not show any sample code nor have any links, even if you click (multiple times) on "View solution in original post". A real let down when the reply from the question asker is, "That helped me. My script is now running" (ok, "runinng") so don't come after me the spelling police.
I do not use Cortex, but I believe the above accepted response is meaning that when you go into Cortex and create a new automation script, selecting Powershell as the script type, some sample code will appear in the new automation script. The sample is not in the post above (except for the example variable definition).
See the Cortex Automations Playbook document on creating new scripts and the script helper page:
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!