← run

sec-shell-exec

1.000
2/2 tests· security

Proposed solution

```python
import subprocess

def run_command(args: list[str]) -> str:
    result = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
    return result.stdout
```