What is the best way to run DMS scripts?

We are attempting to automate our migrations and want to be able to run DMS scripts as a post-migration step if a DMS script is attached to the project.  The documentation describes how to add it as a post-migration step but does not clearly define how it picks it/notifies of a successful run.