VB.net / dmcli


Hello all,


I am trying to create a program that check-out / check-in files from Dimensions Database using VB.net. After searching I found about DMCLI. I tried to search for VB.net available APIs or package but I could not find.
I am trying to make my program make a text file with the commands I need, then call dmcli and pass the file as a parameter to it ( dmcil .... -file filename.txt )
I have 2 questions:



Is there a better way to deal with dmcli through VB.net other than this ?

How can I know if each command in the file succeeded or failed ? (i.e. Is there a way to get the return value/ status of the execution of each command)