Moved executing a command to a sepatate file