I didn't find a solution for C#, so I don't know the execution speed of C# code. 
Using Chilk powershell code, don't need to make any changes, use it directly.

Using Chilk powershell code, don't need to make any changes, use it directly.