AddVariable Method
Sets the value of a variable in the PowerShell Runspace.
Syntax
[VB.NET] Public Sub AddVariable(ByVal Name As String, ByVal Value As String)
[C#] public void AddVariable(string name, string value);
Remarks
Sets the value of a PowerShell variable in the current runspace. The Name parameter specifies the variable name (without the $). The Value parameter specifies the variable value.