Zmień Typ danych PowerShell
[int]$var = (Get-DefaultAudioDeviceVolume).Replace("%","")
Perfect Peacock
[int]$var = (Get-DefaultAudioDeviceVolume).Replace("%","")