在Java中来调用PowerShell代码 使用jPowerShell.jar包。For example, for Maven you have just to add to your pom.xml: com.profesorfalken jPowerShell 3.1.1