Unfortunately we don't have a published API as such. In performance profiler 6, I believe there are options to start the profiler from the command line, so it may be worth upgrading (or at least trialing it).
Tips and how-to guides for Redgate products
Ask, discuss, and solve questions about Redgate's tools
Meet us at an event, get sponsored, and join our Friends of Redgate
In-depth articles and opinion from Redgate's technical journal