$strPattern="软件版本"
$text=net config workstation
switch -Regex ($text)
{
$strPattern {Write-Host $switch.current}
}