c# powershell commandlet
using System.Management.Automation; // Windows PowerShell assembly.
namespace SendGreeting
{
// Declare the class as a cmdlet and specify the
// appropriate verb and noun for the cmdlet name.
[Cmdlet(VerbsCommunications.Send, "Greeting")]
public class SendGreetingCommand : Cmdlet
{
// Declare the parameters for the cmdlet.
[Parameter(Mandatory=true)]
public string Name
{
get { return name; }
set { name = value; }
}
private string name;
// Override the ProcessRecord method to process
// the supplied user name and write out a
// greeting to the user by calling the WriteObject
// method.
protected override void ProcessRecord()
{
WriteObject("Hello " + name + "!");
}
}
}
Also in C++:
- how to run a .bin file in linux
- create new nuxt project
- install dlib
- ubuntu rename user login
- react create app
- dialog plus android github
- configure github account ubuntu
- how to search for a word in files in linux
- install torch anaconda
- how to install uuid-ossp
- Npm install instagram-private-api
- how to install pycharm in linux
- how to revert a commit
- error: failed to push some refs to
- Git blame
- nginx certbot ubuntu
- linux psql
- git delete all local branches
- cut first word
- how to install apache server in ubuntu
- The file will have its original line endings in your working directory
- add new cron job in linux
- sed replace
- ingnore large files in github