ProjectWise Windows Services login with Bentley IMS account?

Does anyone know if there is some sort of workable way to use IMS login api in a Windows Service?

For example, I have an EXE that can run as standalone and successfully login. If I turn that into a service, the login fails. I suspect this is because the service is running in session 0 and the logged in connection client is a user session. (though the inability to show ui might also be an issue). 

Is there any way to support this?