I try to zip files that a are created between 2 dates.

```
param(
[String]$path="DieserPfadWirdAlsParameterGesetzt"
)

$exclude=@("*.zip")
$currentYear = (Get-Date).AddYears(-1).ToString("yyyy")

$firstDayOfYear = Get-Date -Day 1 -Month 1 -Year $currentYear -Hour 0 -Minute 0 -Second 0
$lastDayOfYear = Get-Date -Day 31 -Month 12 -Year $currentYear -Hour 23 -Minute 59 -Second 59

$files = Get-ChildItem -Path $path -recurse -exclude "$exclude" |     
    where {
        $_.CreationTime -ge $firstDayOfYear -and             
        $_.CreationTime -lt $lastDayOfYear            
          }

Compress-Archive -Path $files.FullName -DestinationPath "$path\Archiv$currentYear.zip"
Remove-Item $files.FullName -Recurse -Force -Exclude $exclude

```

the script works but...
lets say in the directory `C:\Users\...\Test` is a folder that was created in 2018 and in that folder is a file that was also created in 2018. The script would create the new zip file (Archiv2018.zip) but in the zip there would be the folder with the file in it AND the file alone...

Is there a way that only the folder with the file in it gets zipped and not the folder with file in it AND file alone?