파일 내용에서 변수 확장 파일이 있습니다.template.txt다음을 포함합니다. Hello ${something} 파일을 읽고 템플릿의 변수를 확장하는 PowerShell 스크립트를 만들고 싶습니다. $something = "World" $template = Get-Content template.txt # replace $something in template file with current value # of variable in script -> get Hello World 어떻게 이럴 수 있죠?다른 옵션은 ExpandString()을 사용하는 것입니다. 예: $expanded = $ExecutionContext.InvokeCommand.ExpandString($template) 호출-표현식도 작동..