execute_with_args function

Execute function with given arguments