Returns a module's extended commands
Returns the commands or scripts in a module that match the module command pattern. Each returned script will be decorated with the typename(s) that match, so that the extended commands can be augmented by the extended types system.
Aspect.ModuleExtendedCommand -Module PipeScript # Should -BeOfType ([Management.Automation.CommandInfo])The name of a module, or a module info object.
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[Object] |
true | 1 | true (ByPropertyName) |
The suffix to apply to each named capture. Defaults to '_Command'
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[String] |
false | 2 | true (ByPropertyName) |
The prefix to apply to each named capture.
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[String] |
false | 3 | true (ByPropertyName) |
The file path(s). If provided, will look for commands within these paths.
| Type | Required | Position | PipelineInput | Aliases |
|---|---|---|---|---|
[Object] |
false | 4 | true (ByPropertyName) | Fullname |
The base PSTypeName(s). If provided, any commands that match the pattern will apply these typenames, too.
| Type | Required | Position | PipelineInput |
|---|---|---|---|
[String[]] |
false | 5 | false |
Aspect.ModuleExtendedCommand [-Module] <Object> [[-Suffix] <String>] [[-Prefix] <String>] [[-FilePath] <Object>] [[-PSTypeName] <String[]>] [<CommonParameters>]