# dispose()

Releases all resources used by the shell object and closes the PowerShell child_process.

#### Returns

[Promise] - A promise that fulfills with the exit code of the child_process, or rejects with an error.

#### Example

```javascript
ps.dispose().then(code => {}).catch(error => {});
```