Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Management.Automation;
- namespace MyPSModule
- {
- [Cmdlet("Get", "Foo")]
- public class GetFooCommand : PSCmdlet
- {
- [Parameter]
- public string Name { get; set; } = string.Empty;
- protected override void EndProcessing()
- {
- this.WriteObject("Foo is " + this.Name);
- base.EndProcessing();
- }
- }
- }
Add Comment
Please, Sign In to add comment