$dateStr = ("API.LOG.{0}" -f (Get-Date -Format 'yyyy-MM-dd.HH-mm'))

$path = Join-Path $env:TEMP $dateStr

$null = mkdir $path

Get-Item "D:\IFSBOSystem\Log\*.log*" | Copy-Item -Destination $path

& 'C:\Program Files\7-Zip\7z.exe' a -tzip "\\btyidr52ftp\d$\IFSBODATA\DW\$dateStr.zip" "$path\*.log*"

rmdir -Force $path -Recurse