How to substitute the cyclic value of foreach into copyhere ()

A script for

powershell handles the output of the file name in the
folder as txt, loop txt to compress the file name into copyhere
but $_, path+$_,$name=path\ $_ and then replace it with $name. It doesn"t work all over,

.
Get-Content $text | Foreach-Object { 
    
    $zipPack.CopyHere("")
    
}

there is less information from searching keywords on the Internet. I don"t know if there is any great advice in this respect. Thank you.

Dec.05,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37777-2c0a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37777-2c0a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?