Creating a Macro to select the furthest face

I have about 200 motors that I need to add a plane to on the shaft face circled below. Where would I start with writing a macro to add that plane to each motor?

I cant use the face number because it changes for each motor.

Could I use a bounding box and create a plane on one side of the bounding box?

Any help would be much appreciated.

SolidworksApi/macros