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