The answer is I don't believe you can. In order to set all of the readiness indicators to show a motor vehicle inspection station that the computer is truly 'clean', you must complete the full drive cycle. The specifics vary depending on the model & year, but in general it includes the following:
1) a half tank of gas to test the vapor recovery system operation
2) a cold start, a few minutes of idle to get up to temperature followed by a light-moderate acceleration to highway speed
3) hold that speed for a few miles, then coast down (some say without braking...)
4) turn off the ignition and wait a few moments
5) repeat the acceleration and steady state cruising
6) shut down and allow to cool to test vapor recovery
Again, this is the general idea and the devil is in the details. Normally a few days of normal operation will get it done if this 'quick' method does not.
In your case, however, you need first to get the light back on so that you can address the basic issue that flunked you the first time around? That part you may be able to do depending on what's wrong. Start and let it idle. In you driveway 'drive' it as best you can back and forth during warmup and after it warms up. Basic stuff like vapor recovery operation, pre and post cat sensors, knock, temp, load calc, transition from open to closed loop, misfire, etc. should show themselves and trigger a code and give you an idea where to start.
After you fix it, how are you going to get it ready for re-inspection without being allowed to drive it to set the ready indicators
You won't get there sitting in your driveway...