# PowerShellScriptResource.withArgs

- Module: [CommunityToolkit.Aspire.Hosting.PowerShell](/reference/api/typescript/communitytoolkit.aspire.hosting.powershell.md)
- Defined on: [PowerShellScriptResource](/reference/api/typescript/communitytoolkit.aspire.hosting.powershell/powershellscriptresource.md)
- Version: `13.4.0`
- Kind: `method`

## Definition

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

## Signature

```typescript
withArgs(args: string[]): PowerShellScriptResource
```

## Parameters

- `args` (`string[]`)

## Returns

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

## Defined on

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