# PowerShellRunspacePoolResource

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

## Definition

```typescript
interface PowerShellRunspacePoolResource
  extends IResource,
    IResourceWithWaitSupport,
    IDisposable {
  addScript(
      name: string,
      script: string): PowerShellScriptResource;
}
```

## Methods

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