Sometimes you will need user interaction to perform certain updates. For example, Backdrop 1.4.0 has a new installer module, but you need to manually look for it and enable it, which causes confusion to users expecting to have all new features after an update.
This could be handled in different ways, like enabling new features on updates, but "power users" will not be happy about this.
Another way is to ask the user if he wants "Pretty new feature" in the update process, like this:

The update script is however very basic, so forms won't be validated in any way, but you could use these forms to pass user input to update scripts.
Recent comments
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout
No problem, let's see how it evolves. I'd be happy to provide a suggested version if i could. I will keep that in mind and try learn this hook chain hopefully very soon. I will...
File hashing uploads made through TinyMCE