Syntax Question Python, a command with two variables
So with the comment I made the following code, which works well:

    #The props= is to get two multiple arguments with one operator.
    props=box.operator("armature.select_hierarchy", text="Extend Parent", icon='DISCLOSURE_TRI_RIGHT')
    props.direction='PARENT'
    props.extend=True