Looking to write some agent tasks probably in PowerShell since it is what I am most familiar with. I need to do something I have never done and provide some parameters as variables. I have 3 task to author ASAP which would allow someone with out access to the server to Stop, Start, or Restart a service that they name as an override parameter. I need them to have access to this task when viewing it in squared up so I need to target windows computers. I am going to secure who has access the the task down to members of a security group.
What I am having trouble finding is how to use parameters in an agent task and how to define them and call them. Can anyone point me in the right direction?