You searched for: “improvises
To quickly prepare and to arrange something without planning it in advance. (1)