https://github.com/tomasbouda/powerclam
Small library for executing powershell scripts.
https://github.com/tomasbouda/powerclam
execution library powershell runner script
Last synced: 10 months ago
JSON representation
Small library for executing powershell scripts.
- Host: GitHub
- URL: https://github.com/tomasbouda/powerclam
- Owner: TomasBouda
- License: apache-2.0
- Created: 2017-11-05T14:42:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-23T07:12:23.000Z (over 6 years ago)
- Last Synced: 2025-04-12T01:52:12.106Z (10 months ago)
- Topics: execution, library, powershell, runner, script
- Language: C#
- Homepage:
- Size: 36.1 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PowerClam [](https://www.nuget.org/packages/TomLabs.PowerClam/) [](https://travis-ci.org/TomasBouda/PowerClam)
Small library for executing powershell scripts.
## Install via NuGet
```
Install-Package TomLabs.PowerClam
```
## Usage
```cs
string output = ScriptRunner.RunScriptFile(new PSScipt(@"C:\PathToScript\Testscript.ps1"));
```
```cs
var script = new PSScipt(@"C:\PathToScript\Testscript.ps1");
script.Parameters[0].Value = "test";
string output = ScriptRunner.RunScriptFile(script);
```