# PowerShellScriptResource

- 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 PowerShellScriptResource interface {
    Resource
    ResourceWithArgs
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `Resource`
- `ResourceWithArgs`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Methods

- [WithArgs](/reference/api/go/communitytoolkit.aspire.hosting.powershell/powershellscriptresource/withargs.md) -- `method`
  ```go
  WithArgs(args []string) PowerShellScriptResource
  ```
