How does i add a custom commnand?

How does i add a custom command ?