refactor: abort/continue/undo scripts

@kevgo Set script name and error messages based on the command running instead of having to hardcode it with strings.
What does the `/-/` and the `${}` do? I only know `$()`.