An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# PowerClam [![NuGet](https://img.shields.io/nuget/v/TomLabs.PowerClam.svg)](https://www.nuget.org/packages/TomLabs.PowerClam/) [![Travis](https://travis-ci.org/TomasBouda/PowerClam.svg?branch=master)](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);
```