Run the "wp_stretchy_Ik()" procedure on the command line.
This script helps create simple and complex strechy IK joint chains. If you need multiple joints within your IK chain, select the IK Handle and insert the amount of joints you moved the effector down the hierarchy in the input field.