Add support for spawn commands