从另一个 zip 存档中提取压缩文件

Extract zipped file from another zip archive

我正在使用 powershell 5.1.17134.590,想知道是否有一种方法可以从另一个 zip 中提取压缩文件,而无需先复制到另一个文件夹,请

像这样,唯一的提取将来自 file.zip 内容:

Expand-Archive -LiteralPath arquive.zip\file.zip -DestinationPath c:\somefolder

Microsoft.PowerShell.Archive 似乎无法做到这一点,似乎仅限于基础水平 compression/decompression - https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.archive/?view=powershell-6

我发现一些帖子中有人使用 System.IO.Compression.FileSystem 来实现这个目标:

https://techibee.com/powershell/reading-zip-file-contents-without-extraction-using-powershell/2152

https://social.technet.microsoft.com/Forums/en-US/c60d8b4e-9408-45c1-bb32-00c53586bd58/unzipping-nested-files-in-powershell?forum=winserverpowershell