Implement the spawn command