Ändern Sie den Datentyp PowerShell

[int]$var = (Get-DefaultAudioDeviceVolume).Replace("%","")
Perfect Peacock