If($files -ne $Null)
 {
   New-Item -Path $AttachmentPath -ItemType "directory" -Force | Out-Null
   Write-host "Created folder: $attachmentPath"