Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,10 @@
</param>
<summary>
Add a piece of script to construct a command pipeline.
For example, to construct a command string "get-process | foreach { $_.Name }"
For example, to construct a command string "get-process | foreach { $\_.Name }"
<code>
PowerShell shell = PowerShell.Create("get-process").
AddCommand("foreach { $_.Name }", true);
AddCommand("foreach { $\_.Name }", true);
</code></summary>
<returns>
A PowerShell instance with <paramref name="command" /> added.
Expand Down Expand Up @@ -511,7 +511,7 @@
<code>
Runspace rs = RunspaceFactory.CreateRunspace();
PowerShell ps = PowerShell.Create();

ps.Runspace = rs;
ps.AddCommand("Get-Process").AddArgument("idle");
ps.AddStatement().AddCommand("Get-Service").AddArgument("audiosrv");
Expand Down Expand Up @@ -2229,4 +2229,4 @@
</Docs>
</Member>
</Members>
</Type>
</Type>