Ambiguous match : Overloaded methods : Calling PowerShell

Nov 9, 2015 at 4:00 PM
We are trying to use this library to call PowerShell commands and scripts from R. Unfortunately we are getting stuck trying to call the .Invoke() method. The issue appears to be that it's overloaded and when clrCall is used there is no way to specify which version of the method to call..

https://msdn.microsoft.com/en-us/library/system.management.automation.powershell.invoke(v=vs.85).aspx

We then get an error:

Error in clrCall(ps,"Invoke") :

.....

Message: Ambigous match found


The methods only appear to differ by return type.

Any suggestions would be more than welcome.