Param(${dir}="", ${word}="") if (${dir} -eq "") { ${dir} = Split-Path $myInvocation.MyCommand.Path -Parent } if (${word} -eq "") { echo "キーワードが指定されていません。" return } echo "Dir : ${dir}" echo "Keyword : ${word}" ${excel} = New-Object -ComObject Excel.Application Get-ChildItem "${dir}" -Include "*.xlsx","*.xls","*.xlt" -Recurse -Name | % { ${childPath} = $_ ${wb} = ${excel}.Workbooks.Open("${dir}\${ch