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