Skip to content
DocsTry Aspire
DocsTry

PowerShellRunspacePoolResource.addScript

Method
📦 CommunityToolkit.Aspire.Hosting.PowerShell v13.4.0
interface PowerShellRunspacePoolResource {
// ... 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

Defined on

This method is defined on the following type: