There are only a few basic operations in the API: Query, Invoke, Create, Read, Update, and Delete. Once you now how to do these in a particular the language/runtime, you should be able to translate programs that use the operations from another language to your target language. We tend to use powershell for the samples because with our snapin installed the scripts are fairly concise.
Is there a particular piece of the powershell script you are not able to translate?