Octopus Deploy Script Module: CommandNotFoundException
Script Modules are a great way of reusing the same Powershell scripts across multiple projects.
One gotcha is that you need to explicitly specify which Script Modules can run per project; Otherwise you will see a “CommandNotFoundException” and the error “is not recognized as the name of a cmdlet“.
The location of this setting seems to vary from version to version of Octopus and is easy to miss. It will be under the Process tab. See the image above for where it is in Octopus 3.4, on the bottom right of the screen.