Please use FQDN not just the domain name in the command.
netsh winhttp set proxy proxy-server="http=<Myproxyserver>:8080;https=<Myproxyserver>:8080" bypass-list= "CASSERVER.DOMAIN.COM"
Please change the relevant field in the above command
We might also need to run this line too:
netsh winhttp set proxy proxy-server="http=172.16.16.100:8080;https=172.16.16.100:8080" bypass-list="172.*;*.mydomain.com;*.local".
and the same can be achieved from Internet Explorer > Tools > Internet Options > Lan settings > Proxy server settings but some times it is good to have settings from Command Prompt