Custom launcher (shell script): How to close cover after completion?

Piggybacking on this, would this approach work for starting multiple apps at once?
I’ve been looking for a practical way to easily start all the apps I want running/open, especially after a reboot.