Yes, this applies for the memory profiler.
The performance profiler is a bit different in that it doesn't take snapshots, but continuously collects data throughout the entire profiling session. The performance profiler does have a command line API
so that you can programmatically start/stop a profiling session, though I'm not sure if it will meet the needs of what you're trying to do. I'm going to send you an email with more details to avoid any confusion from this being on the memory profiler forum.
You should hear from me soon!