I haven't found a script way (yet) but I found these utilities(untested)...

Mute.exe and SetVol.exe

Both are located close to the bottom of the page.