Since the check engine light came on, I'd think the first order of business would be to see what code was set. That may help with diagnosing the problem.
One thing to check is the mass airflow sensor, if your engine has one. They sometimes get dirty and cause stumbling upon application of the throttle (among other symptoms). A general lack of power can be caused by a dirty engine air filter or some other obstruction in the air inlet; with modern computerized engines, those things don't tend to cause other obvious effects--they just have the same net effect as limiting the throttle to not open fully.