It is pretty easy to write a pac file…
function FindProxyForURL(url, host) {
return "PROXY proxy1.example.com; PROXY proxy2.example.com; DIRECT";
}
This example is the bare minimum and has a fallback mechanism.
There lots of example on the net, like that here: Writing and Testing Proxy Auto-Configuration (PAC) Files | ThousandEyes Documentation