diff --git a/src/System.Management.Automation/engine/hostifaces/PSCommand.cs b/src/System.Management.Automation/engine/hostifaces/PSCommand.cs
index 77bf704f38..702bd6ab88 100644
--- a/src/System.Management.Automation/engine/hostifaces/PSCommand.cs
+++ b/src/System.Management.Automation/engine/hostifaces/PSCommand.cs
@@ -77,7 +77,7 @@ namespace System.Management.Automation
/// current state.
///
///
- /// A PSCommand instance with added.
+ /// A PSCommand instance with added.
///
///
/// This method is not thread safe.
@@ -151,15 +151,15 @@ namespace System.Management.Automation
/// Add a piece of script to construct a command pipeline.
/// For example, to construct a command string "get-process | foreach { $_.Name }"
///
- /// PSCommand command = new PSCommand("get-process").
- /// AddCommand("foreach { $_.Name }", true);
+ /// PSCommand command = new PSCommand("get-process")
+ /// .AddScript("foreach { $_.Name }", true);
///
///
///
/// A string representing the script.
///
///
- /// A PSCommand instance with added.
+ /// A PSCommand instance with added.
///
///
/// This method is not thread-safe.
@@ -193,8 +193,8 @@ namespace System.Management.Automation
/// Add a piece of script to construct a command pipeline.
/// For example, to construct a command string "get-process | foreach { $_.Name }"
///
- /// PSCommand command = new PSCommand("get-process").
- /// AddCommand("foreach { $_.Name }", true);
+ /// PSCommand command = new PSCommand("get-process")
+ /// .AddScript("foreach { $_.Name }", true);
///
///
///
@@ -204,7 +204,7 @@ namespace System.Management.Automation
/// if true local scope is used to run the script command.
///
///
- /// A PSCommand instance with added.
+ /// A PSCommand instance with added.
///
///
/// This method is not thread-safe.
@@ -276,8 +276,9 @@ namespace System.Management.Automation
/// Add a parameter to the last added command.
/// For example, to construct a command string "get-process | select-object -property name"
///
- /// PSCommand command = new PSCommand("get-process").
- /// AddCommand("select-object").AddParameter("property","name");
+ /// PSCommand command = new PSCommand("get-process")
+ /// .AddCommand("select-object")
+ /// .AddParameter("property", "name");
///
///
///
@@ -321,8 +322,9 @@ namespace System.Management.Automation
/// Adds a switch parameter to the last added command.
/// For example, to construct a command string "get-process | sort-object -descending"
///
- /// PSCommand command = new PSCommand("get-process").
- /// AddCommand("sort-object").AddParameter("descending");
+ /// PSCommand command = new PSCommand("get-process")
+ /// .AddCommand("sort-object")
+ /// .AddParameter("descending");
///
///
///
@@ -383,8 +385,9 @@ namespace System.Management.Automation
/// Adds an argument to the last added command.
/// For example, to construct a command string "get-process | select-object name"
///
- /// PSCommand command = new PSCommand("get-process").
- /// AddCommand("select-object").AddParameter("name");
+ /// PSCommand command = new PSCommand("get-process")
+ /// .AddCommand("select-object")
+ /// .AddArgument("name");
///
/// This will add the value "name" to the positional parameter list of "select-object"
/// cmdlet. When the command is invoked, this value will get bound to positional parameter 0