Prepared script for automated execution

Added a parameter is_interactive that is set to true by default. When
set to false, no dialogs are shown. Instead programmatic errors are
thrown.