[Optimus] Script to modify the defaut GPU used for an app


I’d like to build a simple script in order to change some applications from “Intel” GPU to “nVidia” GPU… I have several PC that are using the same app (Sketchup as an example).

What is the simplest way to script it ?
(batch ? vbs ? c/c++ ?)

Nobody here? Am I in the right forum section?