I believe this is a bug in the library. What happens if you pass an empty string into the parameter list?
RunEx(TaskRunFlags.UserSID, 0, runAs, "");
This may work around the issue until I can correct, test and update the code.