Thanks for getting in touch! From what I can see, it does not look like we have anything currently written for this. However, we do have a quite extensive wiki for our API which I can help by pointing out appropriate pages and documentation.
The docs have some basic info and links to the GitHub API page. The GitHub page has links to the API wiki and a bunch of example scripts that have been useful at one point or another. You should be able to use these example scripts alongside the API wiki to create a script to do what you are after.
Thanks for getting back! One of our devs just uploaded the following script to our API repo on GitHub, it's a script for updating the deployment process via the API but can be modified to change the Package ID of your deployment steps.