# withArgs

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

## Definition

```typescript
interface PowerShellScriptResource {
  // ... omitted for brevity
  withArgs(args: string[]): PowerShellScriptResource
}
```

## Parameters

- `args` (`string[]`)

## Returns

[PowerShellScriptResource](/reference/api/typescript/communitytoolkit.aspire.hosting.powershell/powershellscriptresource.md) `builder`

## Applies to

- [PowerShellScriptResource](/reference/api/typescript/communitytoolkit.aspire.hosting.powershell/powershellscriptresource.md)
