Skip to content

Instantly share code, notes, and snippets.

@NateLehman
Created January 11, 2019 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NateLehman/871124c7e3bb1854d0409b295e01aacf to your computer and use it in GitHub Desktop.
Save NateLehman/871124c7e3bb1854d0409b295e01aacf to your computer and use it in GitHub Desktop.
namespace MyPSModule
open System.Management.Automation
[<Cmdlet("Get", "Foo")>]
type GetFooCommand () =
inherit PSCmdlet ()
[<Parameter>]
member val Name : string = "" with get, set
override x.EndProcessing () =
x.WriteObject ("Foo is " + x.Name)
base.EndProcessing ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment