Run python script from n panel custom property

Can I use the custom property located in the n panel - tool - workspace to create a button that runs a python command?

I am attemping to select a certain object and clear its shapekeys. I have the script working.

bpy.context.view_layer.objects.active = bpy.context.scene.objects[‘Cube’]
bpy.ops.object.shape_key_clear()

Is there a way to create a button on the n panel to do this? I

You might try the Scripting workbench: Templates → Python → UI Panel simple and change some line:

    bl_space_type = "VIEW_3D"  
    bl_region_type = "UI"
    bl_category = "YourTool"#* or "Item" ??

thanks Ill take a look