You might find this project interesting. It is just a .NET wrapper on the native API. You should be able to call this from PowerShell without too much trouble:
↧
You might find this project interesting. It is just a .NET wrapper on the native API. You should be able to call this from PowerShell without too much trouble: