Can we automate Changesets withing the Scripts

I dont want to manually write the changesets and author in the script. Is there anyway to automate the versioning which logs the changesetes and Ids

Pretius has a great walkthrough about how to set up this type of automation.