{"id":23676075,"url":"https://github.com/frimtec/jpse","last_synced_at":"2025-09-02T05:30:58.775Z","repository":{"id":37960152,"uuid":"265793388","full_name":"frimtec/jpse","owner":"frimtec","description":":electric_plug: API to easily execute PowerShell commands and scripts from Java.","archived":false,"fork":false,"pushed_at":"2024-12-28T12:47:35.000Z","size":286,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T13:31:14.886Z","etag":null,"topics":["api","java","linux","powershell","pwsh","windows"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frimtec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-21T08:18:39.000Z","updated_at":"2024-12-28T12:47:39.000Z","dependencies_parsed_at":"2023-10-17T01:29:27.651Z","dependency_job_id":"ee996249-9892-4fc1-867e-1b45cad193a6","html_url":"https://github.com/frimtec/jpse","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frimtec%2Fjpse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frimtec%2Fjpse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frimtec%2Fjpse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frimtec%2Fjpse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frimtec","download_url":"https://codeload.github.com/frimtec/jpse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231749622,"owners_count":18420825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","java","linux","powershell","pwsh","windows"],"created_at":"2024-12-29T14:41:29.461Z","updated_at":"2025-09-02T05:30:58.757Z","avatar_url":"https://github.com/frimtec.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JPSE - Java PowerShell Executor [![setup automated][gitpod-shield]][gitpod]\n\n[![Maven Central][maven-central-shield]][maven-central]\n[![License][license-shield]][license]\n\n![Project Maintenance][maintenance-shield]\n[![Code Coverage][codecov-shield]][codecov]\n\n[![Build Status][build-status-shield]][build-status]\n[![Deploy Status][deploy-status-shield]][deploy-status]\n\nAPI to easily execute PowerShell commands and scripts from Java.\n \n## Supported platforms\n* Windows\n* Linux (with installed PowerShell)\n* MacOS (with installed PowerShell)\n\n## Example\nCall PowerShell commands or scripts like this:\n```java\nPowerShellExecutor executor = PowerShellExecutor.instance();\nSystem.out.println(\"PowerShell runtime version \" +\n   executor.version().orElseThrow(() -\u003e new RuntimeException(\"No PowerShell runtime available\")));\n\nSystem.out.println(\"Execute command: \");\nString output = executor.execute(\"Write-Host Hello PowerShell!\").getStandardOutput();\nSystem.out.println(\" output = \" + output);\n\nMap\u003cString, String\u003e arguments = Collections.singletonMap(\"name\", \"PowerShell\");\n\nSystem.out.println(\"Execute script as file: \");\noutput = executor.execute(Paths.get(\".\\\\src\\\\test\\\\resources\\\\test.ps1\"), arguments).getStandardOutput();\nSystem.out.println(\" output = \" + output);\n\nSystem.out.println(\"Execute script from classpath: \");\noutput = executor.execute(PowerShellTestApplication.class.getResourceAsStream(\"/test.ps1\"), arguments).getStandardOutput();\nSystem.out.println(\" output = \" + output);\n```\n\n## Add dependency\nTo use jpse in your project you can add the dependency from [maven central][maven-central] to your software project management tool:\n\nIn Maven just add the following dependency to your pom.xml:\n```xml\n      \u003cdependency\u003e\n        \u003cgroupId\u003ecom.github.frimtec\u003c/groupId\u003e\n        \u003cartifactId\u003ejpse\u003c/artifactId\u003e\n        \u003cversion\u003e1.3.5\u003c/version\u003e\n      \u003c/dependency\u003e\n```\n\n[gitpod-shield]: https://img.shields.io/badge/Gitpod-ready_to_code-orange?logo=gitpod\n[gitpod]: https://gitpod.io/from-referrer/\n[maven-central-shield]: https://img.shields.io/maven-central/v/com.github.frimtec/jpse\n[maven-central]: https://central.sonatype.com/artifact/com.github.frimtec/jpse\n[maintenance-shield]: https://img.shields.io/maintenance/yes/2025.svg\n[license-shield]: https://img.shields.io/github/license/frimtec/jpse.svg\n[license]: https://opensource.org/licenses/Apache-2.0\n[codecov-shield]: https://codecov.io/gh/frimtec/jpse/branch/master/graph/badge.svg?token=WHFQYWA0EA\n[codecov]: https://codecov.io/gh/frimtec/jpse\n[build-status-shield]: https://github.com/frimtec/jpse/workflows/Build/badge.svg\n[build-status]: https://github.com/frimtec/jpse/actions?query=workflow%3ABuild\n[deploy-status-shield]: https://github.com/frimtec/jpse/workflows/Deploy%20release/badge.svg\n[deploy-status]: https://github.com/frimtec/jpse/actions?query=workflow%3A%22Deploy+release%22\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrimtec%2Fjpse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrimtec%2Fjpse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrimtec%2Fjpse/lists"}