Implemented shell command execution functionality