Can I auto load many poses into successive keyframes?

Is there a way to load an entire folder of poses into successive keyframes for export as .fbx?
I could do it manually but if I have 50 poses and I want each one to be put into a separate key frame before export it would take a long time.