diff --git a/src/System.Management.Automation/engine/hostifaces/PowerShell.cs b/src/System.Management.Automation/engine/hostifaces/PowerShell.cs index 7995342953..36319172ce 100644 --- a/src/System.Management.Automation/engine/hostifaces/PowerShell.cs +++ b/src/System.Management.Automation/engine/hostifaces/PowerShell.cs @@ -559,7 +559,7 @@ namespace System.Management.Automation /// /// Provides a simple interface to execute a powershell command: /// - /// Powershell.Create("get-process").Invoke(); + /// Powershell.Create().AddScript("get-process").Invoke(); /// /// The above statement creates a local runspace using default /// configuration, executes the command and then closes the runspace.