Running batch commands from Phyton Console

Hello,
I’m not familiar with Phyton but I was able to use Phyton Console to run some internal Blender commands in batch by simply pasting into the console. Such as:

bpy.ops.object.subdivision_set(level=2)bpy.ops.object.editmode_toggle()
bpy.ops.mesh.remove_doubles()
bpy.ops.mesh.tris_convert_to_quads()
bpy.ops.object.editmode_toggle()
bpy.ops.object.shade_smooth()
bpy.ops.object.transform_apply(location=True, rotation=False, scale=False)
bpy.ops.object.transform_apply(location=False, rotation=True, scale=True)



I usually look at the “Info” panel to see what is being run and copy those to a text file.
But I can not run some 3rd party add-ons using this method. Even though they don’t require any input other than a selected object. They don’t show anything on the “Info” panel.
Where do I look, how do I run them?
How can I pass the selected object if they require it as a parameter?

Is there such an add-on to collect favorite commands (saving multiple lines of console code) and simply run a favorite by hitting a button?It is OK to paste them to console but would be cool to collect them into one place inside Blender.

Thanks