Convenience function for running shell commands