Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PowerShellRunspacePoolResource.AddScript

Method
📦 CommunityToolkit.Aspire.Hosting.PowerShell v13.6.1
type PowerShellRunspacePoolResource interface {
// ... omitted for brevity
AddScript(
name string,
script string,
) PowerShellScriptResource
}

Signature

methodAddScriptbuilder
Adds a PowerShell script resource to the distributed application.
AddScript(
name string,
script string,
) PowerShellScriptResource
namestring
scriptstring
PowerShellScriptResource

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: