j-Interop is a Java Open Source library (under LGPL) that implements the DCOM wire protocol (MSRPC) to enable development of Pure, Bi-Directional, Non-Native Java applications which can interoperate with any COM component.
I have the following code that runs a windows service from inside Java.The code uses JInterop Java library, JInterop …
java powershell wmi wmi-service j-interop