Powershell抽出

# 全体
Get-Content ファイル名 | Select-String -Pattern "検索" | %{$_.Matches.Value}

# 全体とマッチ
Get-Content ファイル名 | Select-String -Pattern "検索" | %{$_.Matches.Groups.Value}

# マッチのみ
Get-Content ファイル名 | Select-String -Pattern "検索" | %{$_.Matches.Groups[1].Value}