Get file in package registry from a script

I want to get a .war file generated in my package registry with a powershell script to deploy automatically a version of my package on running my script on the server.

I’m using the API to get the last version of the file with a specific version but I have all metadata available with the /packages/ routes but cannot download the file.

I’m using gitlab.com

Thanks a lot guys