Skip to content

Instantly share code, notes, and snippets.

@IISResetMe
Created January 22, 2019 19:54
Show Gist options
  • Save IISResetMe/b3d1f595cc56fc99ac07dbcb393d06d7 to your computer and use it in GitHub Desktop.
Save IISResetMe/b3d1f595cc56fc99ac07dbcb393d06d7 to your computer and use it in GitHub Desktop.
module PSFSharp.Stuff
open System.Management.Automation
[<Cmdlet("Get","Stuff")>]
type GetStuffCommand() as self =
inherit PSCmdlet()
override PSCmdlet.ProcessRecord() =
self.WriteObject(self.Param)
[<Parameter(Mandatory = true)>]
member val Param : string = ""
with get,set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment