How to Device Info Get Text File

How to Device Info Get Text File in Visual C#

example command

    //adb shell
    //dumpsys window | grep -E 'mCurrentFocus'

    //adb devices
    //adb devices -l

    //adb version

    //adb shell getprop ro.build.version.release