How can I make it so when there are arguments added to the end of the program name it does a specific method or whatever?
Also, is there a name for this?
Example
These are called command-line arguments. There's a good tutorial on MSDN on how to use them.
This example should get you started:
class TestClass { static void Main(string[] args) { // Display the number of command line arguments: System.Console.WriteLine(args.Length); } }