I need a custom program where we can pull the data in one shot.
You'll probably need to be more specific in order to find help with this. "One shot" is likely a big ask, too -- what will that do for you that you can't do right in ST03N? Or, more to the point, why not use Solution Manager to collect and aggregate your performance data?
If you look under the hood of ST03N, you'll find a number of function modules used for various tasks which you can likely adapt for your purposes. For instance, we make a monthly function module call to extract specific data around transaction usage by user so that we can keep long-term archives of what is actually being used and by whom. But, it's not a program, we run the function module in SE37.
FYI, I adapted your tags slightly.