End Google Ads 201810 - BS.net 01 --> Hi

I'm trying to create PowerShell Cmdlets from C#, I'm able to create the Cmdlets and register it and it works fine as well. It looks like i need to create a separate class for every Cmdlet, Is it correct? Let's say following code is to create one Cmdlet and if i want to create another Cmdlet called Get-Process do i need to create new class and write?




[Cmdlet(VerbsCommon.Get, "Proc23")]
public class TouchFileCommand : Cmdlet
{
private string path = null;
[Parameter(Mandatory = true)]
public string Path
{
get
{
return path;
}
set
{
path = value;
}
}
protected override void ProcessRecord()
{
if (File.Exists(path))
{
//File.SetLastWriteTime(path, DateTime.Now);

}
}
}