I am executing below curl command to read config file and send it to the servlet which does some logic based on config file and upload the data to the application

Code:
  curl -K mydata.cfg http://10.1.0.1:1000/servlet/Upload
Anyone please help how to run/automate above command from C# console application?