17 lines
389 B
PowerShell
17 lines
389 B
PowerShell
function Resolve-ConfigurationDataExpression {
|
|
[CmdletBinding()]
|
|
Param(
|
|
[Parameter(Mandatory=$true)]
|
|
[string]
|
|
$Expression,
|
|
|
|
[Parameter(Mandatory=$true)]
|
|
$Context
|
|
)
|
|
|
|
$Body = $Expression.Trim()
|
|
$Body = $Body.Substring(1, $Body.Length - 2).Trim()
|
|
|
|
return Invoke-ConfigurationDataExpression -Expression $Body -Context $Context
|
|
}
|