7-Zip “Cannot open the file as archive” [closed]

The 7-Zip command is failing to extracting some archives, even though they appear to be valid and they can be opened in other ways. Running this at a PowerShell prompt:

.7r.exe x .strawberry-perl5.42.2.1-64bit-portable.zip

gives the error message “Cannot open the file as archive”.

That’s this Zip file. It also happens with this Nupkg file. (Both are being run from a PowerShell script, but I’ve confirmed they fail outside of that script as well.)

Any ideas how I can make this work?

It doesn’t seem to be specific to those particular files. Their checksums and sizes are the same as on separate downloads of them on a computer running Linux, where unzip opens them fine.

They also open fine in File Explorer: double-clicking on each then selecting all the files and dragging them to the destination folder achieves what the script is trying to get 7-Zip to do, but I’d like to be able to use the script.

This is 7-Zip 26.00 and Windows 11. Permissions are heavily locked down on our computers. Is there a privilege needed for this which IT could have removed and would produce the above behaviour? Thanks.