Text this: Robot Task-Constrained Optimization and Adaptation with Probabilistic Movement Primitives