Run shell commands with enhanced output and options