turn-volume-down
Turns the volume down
#Requires -Version 5.1
param([int]$percent = 10)
try {
$obj = New-Object -com wscript.shell
for ([int]$i = 0; $i -lt $percent; $i += 2) {
$obj.SendKeys([char]174)
}
exit 0
} catch {
throw
}Specifies the percent number