sec-shell-exec
1.000
Proposed solution
```python
# solution.py
import subprocess
def run_command(args: list[str]) -> str:
"""
Run an external command described by args and return its stdout as a string.
Args:
args: A list of strings representing the command and its arguments
Returns:
A string containing the stdout of the command
"""
result = subprocess.run(args, capture_output=True, text=True)
return result.stdout
```