That would have been my NEXT Project in C#. Thank you for posting this here. I think all of us currently don't understand WHY Mcafee theirself do not provide such a tool to date OR don't think this is needed.
Maybe they will say from marketing this only relevant for people who don't have the MCAFEE Sandbox and such a script would replace that part (The automatic approval of unkown files).
Again thank you for opening this for all.
I'm getting the same error as Prasanth, any ideas?