PowershellAliases.

StartPowershellScript(ICakeContext, string, Action<ProcessArgumentBuilder>) Method

Summary

Starts a powershell script using the specified information.
Assembly
Cake.Powershell.dll
Namespace
Cake.Powershell
Containing Type
PowershellAliases

Syntax

public static Collection<PSObject> StartPowershellScript(this ICakeContext context, string script, Action<ProcessArgumentBuilder> arguments)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The cake context.
script string The powershell script to run.
arguments Action<ProcessArgumentBuilder> The arguments to append.

Return Value

Type Description
Collection<PSObject> A collection of powershell objects