How to create a default WSGClientContext

Hi,

For a powershell-script I want to make a new PWDocumentVersion, however it seems that manually creating a new version is not possible when using a Workflow Rules Engine (WRE).

I have downloaded PWPS_WSG, in order to try to Invoke a new version via de WRE, but it needs a WSGClientContext.

Since we are using BentleyIMS, how can i create a WSGClientContext?

Is it possible that 'New-WSGClientContext' can be enhanced to create a default context, based on your current login?

Or if not, how can I  create a context using the current connection?

Thanks in advance.