launcher.cfg is installed by/with Yawcam.
The file is stored in the directory where you installed Yawcam ->
That's the same directory is launched from when you normally use Yawcam.
The launcher.cfg contains all information where Yawcam can find your Java.
I think, when you copy the cfg file into the same directory as your "Autohotkey script" it will work.