Create a function used to build che command line according