mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Updating incorrect example of PowerShell.Create() (#7926)
This commit is contained in:
@@ -559,7 +559,7 @@ namespace System.Management.Automation
|
||||
///
|
||||
/// Provides a simple interface to execute a powershell command:
|
||||
/// <code>
|
||||
/// Powershell.Create("get-process").Invoke();
|
||||
/// Powershell.Create().AddScript("get-process").Invoke();
|
||||
/// </code>
|
||||
/// The above statement creates a local runspace using default
|
||||
/// configuration, executes the command and then closes the runspace.
|
||||
|
||||
Reference in New Issue
Block a user