Please check Example: Case0006CommandLineParametersSimulation or thread: Cannot Grab Command Line Arguments