Ten or so years ago, our trucking division experimented with such a program. It ran on a PC and had a controller with a single knob which could be rotated left or right.
You used the knob to keep the cursor in the center spot on the screen. The cursor would become more difficult to control during the test (about 30 seconds)
Drivers would sign in for the first time and establish a baseline for themselves by taking the test multiple times until the program indicated that a baseline was established. (About a dozen attempts, I think)
Once a baseline was established, a driver had to pass the test before starting his shift. If he failed, he had to see a supervisor.
I tested it on myself. After two (unmeasured) shots of vodka, I would have had to see a supervisor were I a driver.
An additional advantage was that you would also fail the test if you had the flu, were sleep-deprived or emotionally unfit to drive.
The program never went into full production at our place. Currently drivers are tested when hired and after any accident or delivery process incident.
I forget what it was called (I tried googling). I thought it was "fair". If you couldn't pass the test, you probably shouldn't drive a truck that day.
If you smoked a joint a week ago, it wouldn't affect the test but if you were up all night watching movies, you'd likely fail.