Flask-based implementation for running shell commands