There are 3 things that work together to establish idle(in the simplistic sense) The minimum air setting,the TPS and the IAC (idle air control motor) The minimum air setting is the screw on the left side of the throttle body,opposite the TPS's drift pin.It establishes how far open the throttlevalve (blade) is open, much like the curb idle screw on a carburetor. The TPS which lets the ECM know where the base setting is for idle all the way up through WOT (4.5 ish voltage). The IAC is a stepper motor which regulates how much bypass air to let in around the throttle valve and consequently how much fuel to add too via the ECM.
You kinda have to juggle 3 adjustments at a time,per say, to get the proper IAC counts. First I set the minimum air screw,then check to see how far I've thrown off the TPS base setting. red-adjust the TPS and then check the IAC counts. Then repeat as necessary to regain the ECM's control of the IAC motor.
The IAC is what I use as my targeted sensor to make right and adjust the others to make the IAC counts within a reasonable range. I shoot for 25, but I don't scoff at 40-50 counts as wrong either.
Two things need to happen first before you try adjusting anything. 1, the car needs to be warmed up and 2, you need a scantool,like scanmaster, to see the IAC counts and TPS voltage.
I'm gonna go out on limb here and say you have an IAC problem as it seems that the ECM has lost control of the IAC motor and can't get enough air around the throttle blade...for whatever reason.
The TPS is easy to check as it should base at .38-.42 and wide open at 4.5-4.8V and you can check that with a multimeter...or scanmaster. Of course there maybe a dead spot in it but you won't know till it's out on the road and you incur a whole new set of wierd problems.
The IAC is another story, it's a fragile little devil that steps a pintle in or out a certain number of counts or steps and is made of plastic parts inside. It's a common mistake to pull it out and "clean" it and find that you have manhandled it too much and know it won't step properly. You cannot push the pintle in or pull it out as it strips those gears inside.
Read this
http://www.vortexbuicks-etc.com/tuning.htm#IAC (Idle Air Control) Adjustment and have a go at getting your car to start and idle properly. This is a good newbie project and resist,if you can, throwing parts at it.
...