sec-shell-exec
1.000
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
``````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
```