# $cs.Job_Start

> Initializes the job/log context for the running script — sets up logging and related state for the package/version/action being processed.

Source: https://docs.capaone.com/capainstaller/powerpacks/cs-job-start/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Initializes the job/log context for the running script — sets up logging and related state for the package/version/action being processed. This is already wired up as fixed scaffolding inside the `#### MAIN ####` section of the PowerPack script template. PowerPack authors do not call this themselves inside `PreInstall`, `Install`, `PostInstall`, or the corresponding uninstall functions; it is documented here purely for reference/completeness since it is technically part of the public `$cs.*` API.

### Syntax

$cs.Job\_Start(string jobtype, string packagename, string packageversion, string logpath, string action)

### Parameters

#### jobtype (String)

Not used.

#### packagename (String)

Name of the package being installed or uninstalled.

#### packageversion (String)

Version of the package.

#### logpath (String)

Path to the log file.

#### action (String)

The kind of action being performed, e.g. `INSTALL` or `UNINSTALL`.

### Return value

None

### Example

**PowerShell**

This is what the `MAIN` section of the PowerPack template already does for you — you do not need to call it yourself:

```powershell
#### MAIN ####

$cs.Job_Start('WS', $global:AppName, $global:AppRelease, $global:LogFile, 'INSTALL')
```
