Fixes #1036 - use command variable for passthru() call