Hello
How you doing your car is OBD1. It means when your check Engine light is getting on it must give you a Code.
Keep an eye on your Engine light how many times it is flashing for example if it is flashing two times first and then after a short break it is flashing three times it means it is trouble Code 23.
Go to the index in Service Mannual/Repair Manula same thing and check the reason for this code and change that part your problem will be fixed.
As a side note as you said you have a hole in Air filter inlet so replace the hose cause it could making trouble for MAs (mass air flow sensor) to get wrong reading and giving a wrong input to ECU (Electronic Controle Unit).
And there is a sensor on throttle body too to sense the opening and closing position of throttle door don't forget to check it out too.
Just check that sensor and take it out blow some air in it and you will be fine it your problem is not solved then tell me all symptoms again. you will get rid of this shitt.
I don,t know why i,m telling you all this. This is first time i,m ever replying to any topic at PW. I,m been visiting this site for years now but i,m never participating in any comment or answer cuz I hate Pakistnies (Although unfortunately i,m a Pakistani too).
I know y'be mad at me now so what I don't care I told you the truth. I,m helping you out not because of a Pakistani just because this is my profession. Cuz i,m a toyota certified Technician over here in U.S and no one is answering technically to your problem.
by