How to make script that downloads wally packages

Can someone tell me how to make a simple plugin or script to run in the command line that downloads and inserts wally packages directly in studio?

Thanks.