using System.Management.Automation; namespace LANCommander.SamplePlugin; /// /// A cmdlet added by the sample plugin. Once registered via /// it is callable from any LANCommander script as /// Get-SampleGreeting -Name "World". /// [Cmdlet(VerbsCommon.Get, "SampleGreeting")] public sealed class SampleGreetingCmdlet : PSCmdlet { [Parameter(Position = 0)] public string Name { get; set; } = "World"; protected override void ProcessRecord() { WriteObject($"Hello, {Name}, from the LANCommander sample plugin!"); } }