invoke main method like with parameters