How to switch an armature to pose mode and select a certain bone?

Im new to python commands so thanks for understanding my newbness

What I am trying to do is find a command that selects a certain armature, switches it to pose mode, then selects certain bones.

Why? I am working with Auto Rig Pro and the default is IK. There is a button to switch a hand from IK to FK. But, I have to select each hand and then hit the button. So I’d have to do this 4 times. I want to switch all hands and feet back and forth from ik to fk with one or two commands.

I know I can right click and get the IK FK switch command. But I dont know how to find the command that selects each hand and foot