Trying to write a PowerShell cmdlet that will mute the sound at start, unless already muted, and un-mute it at the end (only if it wasn\'t muted to begin with). Couldn\'t fi
Use the following commands on a ps1 powershell script:
$obj = new-object -com wscript.shell $obj.SendKeys([char]173)