C# Class PowerShellConsole.PSConsolePowerShell

Show file Open project: dfinke/PowerShellConsole Class Usage Examples

Private Properties

Property Type Description
GetScriptsDirectory string
GetScriptsToRun IEnumerable

Public Methods

Method Description
ExecutePS ( this script ) : Collection
ExecuteScriptEntryPoint ( this scriptEntryPoint, object argument = null ) : void
SetVariable ( string name, object value ) : void

Private Methods

Method Description
GetScriptsDirectory ( ) : string
GetScriptsToRun ( string scriptEntryPoint ) : IEnumerable

Method Details

ExecutePS() public static method

public static ExecutePS ( this script ) : Collection
script this
return Collection

ExecuteScriptEntryPoint() public static method

public static ExecuteScriptEntryPoint ( this scriptEntryPoint, object argument = null ) : void
scriptEntryPoint this
argument object
return void

SetVariable() public static method

public static SetVariable ( string name, object value ) : void
name string
value object
return void