# PowerShellRunspacePoolResource

- Module: [CommunityToolkit.Aspire.Hosting.PowerShell](/reference/api/go/communitytoolkit.aspire.hosting.powershell.md)
- Version: `13.6.1`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

## Definition

```go
type PowerShellRunspacePoolResource interface {
    Resource
    ResourceWithWaitSupport
}
```

## Embeds

- `Resource`
- `ResourceWithWaitSupport`

## Methods

- [AddScript](/reference/api/go/communitytoolkit.aspire.hosting.powershell/powershellrunspacepoolresource/addscript.md) -- `method` -- Adds a PowerShell script resource to the distributed application.
  ```go
  AddScript(name string, script string) PowerShellScriptResource
  ```
