# Initialize-UcmReport

{% hint style="info" %}
For a full overview, check [About UCM Reporting Cmdlets](https://docs.ucmadscientist.com/using-ucmpstools/cmdlet-reference/reporting-and-logging#about-ucm-reporting-cmdlets)
{% endhint %}

## Description

Creates a new PSCustomObject to store a report. Must be called before [New-UcmReportItem](https://docs.ucmadscientist.com/using-ucmpstools/cmdlet-reference/reporting-and-logging/new-ucmreportitem) or [New-UcmReportStep](https://docs.ucmadscientist.com/using-ucmpstools/cmdlet-reference/reporting-and-logging/new-ucmreportstep)

## Parameters

**Title:** "HTML Report"\
**SubTitle:** "The results were as follows"\
**StartDate:** (Get-Date -format dd.MM.yy.hh.mm)\
**NiceDate:** (Get-Date -displayhint datetime)

## Notes

This function will create a few global variables, including the two below which specify the filenames for CSV or HTML reports. by default, the filename is based on the **Title** parameter and the time the report was initialized.

```powershell
 $Global:HTMLReportFilename=".\$Title - $StartDate.html"
 $Global:CSVReportFilename=".\$Title - $StartDate.csv"
```

Once the report has been initialized, these variables can be updated to change the filenames before [Export-UcmCsvReport](https://docs.ucmadscientist.com/using-ucmpstools/cmdlet-reference/reporting-and-logging/export-ucmcsvreport) or [Export-UcmHtmlReport](https://docs.ucmadscientist.com/using-ucmpstools/cmdlet-reference/reporting-and-logging/export-ucmhtmlreport) are called.

## Example

```powershell
Initialize-UcmReport
```

## Inputs

This function accepts no inputs

## Outputs

This function does not create pipelined output
