Helper function to run a subprocess in a Python lambda expression.
string
result of running the command