As best I know "someone said it could be the PCM" is not a diagnostic procedure. That having been said, the following is a test procedure for an intermitent PCM problem. The PCM (ECU or das computer) is on the passenger side behind the glove box. With the engine running, selecter in park if automatic, or the selector in neutral if a standard shift (emergency brake on) tap on the computer with the handle of a screwdriver. If you can make the car "act up" at will, or run OK, by tapping on the case, then there is a problem in the computer. By tapping on the case you are simulating the "bumps in the road" and finding out if that is what is causing the malfunction. The test is not fool proof, but it has worked without fail for me.
If you cannot recreate the poor running condition by thumping on the computer, then look elsewhere for the problem, say the DIS system. (Search for the DIS tests and how to do them.)