Skip to content

Instantly share code, notes, and snippets.



Last active Dec 25, 2015
What would you like to do?
using System.Management.Automation;
namespace TestModule
[Cmdlet(VerbsCommon.Get, "Hoge")]
public class GetHoge : PSCmdlet
[Parameter(Mandatory = false, Position = 0, ValueFromPipeline = true)]
public string Name { get; set; } = "Hoge";
protected override void ProcessRecord() => this.WriteObject(this.Name);

This comment has been minimized.

Copy link
Owner Author

@guitarrapc guitarrapc commented Dec 25, 2015


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment