I needed to get number of CPU processor speed as a number. I can't use any extra utility commands. I can use only cmd in Windows or Powershell.
wmic cpu get name | select -Skip 1 | %{$_.Split(' ')[5];} | %{$_.Substring(0, 3)}
Everything is performed correctly, except substring command

Does it exist any easy approach to fix it? And why I get 4 warning for single value after split command?
Get-WmiObject Win32_Processor | Select-Object -Expand MaxClockSpeed(GWMI Win32_Processor).MaxClockSpeedor if you have at least PowerShell 3.0,(GCIM Win32_Processor).MaxClockSpeed.