run expect in a separate script