APIKey error when running powershell script in Octopus

I am running a PS script through Octopus and I have set up my variables but I am getting an error “ObjectNotFound: The term ‘-APIKey’ 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”. What does this mean?

Hi Mike,

Thanks for getting in touch!

Are you able to share the script being run?
And does the script work if run outside of Octopus?

Regards,
Paul

Hi,
Its fine problem sorted.
Thanks

1 Like