How to adjust interactively modifier parameters after adding modifier?

This might be a longshot for my python skills but I wonder how could I add this interactive state after adding the modifier where I could adjust the amount of arrays and or axis of the arrays after adding the modifier? I have seen quite many addons have something like that and I would like to add something similar for my custom pie menu.

array

My current code is very simple just something to add the modifier.

class ACSModifierPie(Menu):  # Add modifiers pie
    bl_label = "Modifier pie"

    def draw(self, context):
        layout = self.layout
        pie = layout.menu_pie()
#Left            
        pie.operator("object.modifier_add", text="Array").type='ARRAY' 
#Right
        pie.separator()
#Bottom
        pie.separator()
#Top
        pie.separator()
#Top_left
        pie.separator()
#Top_right
        pie.separator()
#Bottom_left
        pie.separator()
#Bottom_right
        pie.separator()
            
        return {'FINISHED'}

If you define your own operator, you can give it properties that are adjustable. You could create your own operator that adds and edits the array modifier, for example:

class CustomArrayModifierOperator(bpy.types.Operator):
    # can be anything as long as unique to your operator
    bl_idname = "custom_modifier_operator.array"
    bl_label = "Array Modifier"
    bl_description = "Array Modifier"
    bl_options = {"REGISTER", "UNDO"}

    count: bpy.props.IntProperty(name="Count")

    def execute(self, context):
        # using bpy.context.object.modifiers.new since it returns the actual modifier
        array_modifier = bpy.context.object.modifiers.new("Array", "ARRAY")
        array_modifier.count = self.properties.count

        return {'FINISHED'}

And then in the pie menu you can call your operator instead of object.modifier_add

array_modifier_operator = pie.operator(CustomArrayModifierOperator.bl_idname, text="Array")
array_modifier_operator.count = 2  # default to count of 2