1. To run C# Code in cmd
2. Why use cmd instead of visual studio
Here is a sample zip file Sample.rar to run a code in cmd.