I have a specific error which depends on the packages installed in environment, to reproduce this error on the developer org, I need all the installed packages to install into development org.
Can I write a simple SFDX Script to copy all installed packages from one org to another one to automate this rather than having to install all of these manually?