You have a few options.
First, if the A590 has MF capability, then set the focus prior to running the script.
Second, if you use the script's "fast" mode, the script will focus prior to waiting for motion. So if the camera is pointed into the distance, you will get a focus at infinity with no "wait for focus adjustment" when motion is detected.
Third, you could try to modify the code to automatically focus at infinity. I've put various focus options into my recent scripts - not all choices work on all cameras. I've also posted an updated version of fudgey's script - [
link ]. I could add the MF code to that I guess.