Rather than downloading the snapshot package using scripting, use the NPM distribution of CQF Tooling together with an appropriate package.json to support using FSH followed by Refresh tooling and place the result of that processing in the appropriate input folders in the IG so that genonce can be run to complete IG publishing.
Rather than downloading the snapshot package using scripting, use the NPM distribution of CQF Tooling together with an appropriate package.json to support using FSH followed by Refresh tooling and place the result of that processing in the appropriate input folders in the IG so that genonce can be run to complete IG publishing.