First I'd use a scripting language, because those are usually easier/faster to get used with. And they are flexible and you don't need to compile things after each change, you can modify the code directly and just run it.
Secondly I wouldn't use a general purpose language, like C# or Python. While they will do great, they are really not the right tool for the job. They have lots of APIs and lots of choices to choose from. They are also tied to a runtime/fx, that needs to be deployed to the target machine.
Consider a "parsing" kind of language like Perl. Or you may want to use something like PowerShell. But I think Perl will do just great.