Search notes:

ExpandString

System.Management.Automation.CommandInvocationIntrinsics: ExpandString()
PS C:\> $varName = 'txt'
PS C:\> $txt= 'Hello world'
PS C:\> $ExecutionContext.InvokeCommand.ExpandString("varName = $varName, value = `$$varName")
varName = txt, value = Hello world

See also

System.Management.Automation.CommandInvocationIntrinsics

Index