---
title: "Custom scripts for document automation"
canonical_url: "https://www.nutrient.io/guides/document-automation-server/content-extraction/custom-scripts/"
md_url: "https://www.nutrient.io/guides/document-automation-server/content-extraction/custom-scripts.md"
last_updated: "2026-06-09T10:25:14.360Z"
description: "Discover how to use custom scripts in Document Automation Server for enhanced content extraction and tailored file processing."
---

# Harnessing custom scripts in document automation

In Document Automation Server (DAS) Content Extraction, the user can execute custom scripts after each file is successfully processed. This gives the user a chance to do some custom post processing on the file input or output files. It also empower users to perform any type of operations that are not available in DAS Content Extraction.

We use **Windows Script Host** (specifically the command line utility CScript) to execute these scripts. Below is an example of the command line generated to execute a custom script.

If the Debug option is set on **Job Settings**, you will be able to see the arguments as follows:

```console

cscript  "C:\Aquaforest\Kingfisher\Custom\testarguments.wsf"  ^
"/Newfilename:00000006.pdf"  ^
"/Oldfilepath:C:\Aquaforest\Kingfisher\In\invoice_6.pdf"  ^
"/TempOutputFile:C:\Aquaforest\Kingfisher\temp\jobs\10012\bb3e649b-6cda-4de4-bd45-c69d12f23227\target\00000006.pdf"  ^
"/TempTarget:C:\Aquaforest\Kingfisher\temp\jobs\10012\bb3e649b-6cda-4de4-bd45-c69d12f23227\target"  ^
"/FinalTarget:C:\Aquaforest\Kingfisher\Out\Split\Text Change"  ^
"/JobSource:C:\Aquaforest\Kingfisher\In" "/LocationType:file"  ^
"/value1:00000006"

```

---

## Related pages

- [Efficient content extraction with custom scripts](/guides/document-automation-server/content-extraction/custom-scripts/custom-script-arguments.md)
- [Explore custom scripts for document automation](/guides/document-automation-server/content-extraction/custom-scripts/custom-scripts-samples.md)
- [Enable custom scripts for automation tasks](/guides/document-automation-server/content-extraction/custom-scripts/enabling-custom-scripts.md)

