We have MacBook Pros that are always on adapter power that have to process large amounts of data.
We are finding that the graphics card keeps switching and need to be able to run a profile or policy that will disable the Automatic graphics switching without having to tell users to manually change it themselves.
After much digging, we found that the following command would work. We created a policy and added the line to the Files and Processes module.
pmset -a gpuswitch 1