Soem time ago I wrote a script for a customer which does some things in the background that may take quite some time.
So from their perspective the script would ‘hang’.
To avoid this experience I’ve written a small function to provide a somewhat better experience by showing a progress bar.