# DistributedApplicationBuilderExtensions

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.PowerShell](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell.md)
- Version: `13.4.0`
- Namespace: `CommunityToolkit.Aspire.Hosting.PowerShell`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PowerShell/DistributedApplicationBuilderExtensions.cs)

Extensions for the `Hosting.IDistributedApplicationBuilder` to add PowerShell runspace pool resources.

## Definition

```csharp
namespace CommunityToolkit.Aspire.Hosting.PowerShell;

public static class DistributedApplicationBuilderExtensions
{
    // ...
}
```

## Methods

- [AddPowerShell(IDistributedApplicationBuilder, string, PSLanguageMode, int, int)](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/distributedapplicationbuilderextensions/methods.md#addpowershell-idistributedapplicationbuilder-string-pslanguagemode-int-int) : `IResourceBuilder<PowerShellRunspacePoolResource>` `extension` `ats ignored` -- Adds a PowerShell runspace pool resource to the distributed application, enabling managed execution of PowerShell scripts with configurable language mode and runspace limits.
