You can use cdb
instead of WinDbg and run a WinDbg script. In this script, you can use extensions like SOS or PyKd (Python) to get the task done. Such a solution would not even require C# code. This works quite well for kernel dumps or dump files of native applications.
It's also possible to build a debugger in C# using the CLR managed debugger engine, which is also available as a Nuget package. Note that this focuses on .NET applications. You'll probably not get as good results for native applications or kernel dumps.
I found the following tutorial: Writing an automatic debugger in 15 minutes, which might be a good starting point for you.