Update Command.cs

Changed method`s name, if statement with switch and parameters