This script allows you to bake the movement of the bones created by bone dynamics. Download link: https://mohoscripts.com/script/mr_bake_bone_dynamics
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.