Hi all,
We are having issues calling a pre-built script with params. Running the script on the remote server directly works fine so there has to be something wrong with our formatting/syntax. Please school me!
Here is our payload command:
cd C:\Scripts; .\Automation.ps1 -TicketID "{{ticket.id}}" -Subject "{{ticket.subject}}"
Here is output error:
The term '.\Automation.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:16 + cd c:\Scripts; .\Automation.ps1 -TicketID "123" -Subject "Test Run" + ~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (.\Automation.ps1:String) n], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException