call_routine to analyze cli arguments and dynamically load a function based on routine name.