$strPattern="軟件版本"ide
$text=net config workstationit
switch -Regex ($text)io
{class
$strPattern {Write-Host $switch.current}軟件
}di