22description : >
33 This article shows how to run commands in PowerShell.
44title : Running commands in the shell
5- ms.date : 08/22/2022
5+ ms.date : 01/23/2025
66---
77# Running commands in the shell
88
@@ -73,8 +73,8 @@ For more information, see the following articles:
7373- [ about_Parsing] [ 1 ]
7474- [ about_Quoting_Rules] [ 2 ]
7575
76- PowerShell 7.2 introduced a new experimental feature ` PSnativeCommandArgumentPassing ` that improved
77- native command handling. For more information, see [ PSnativeCommandArgumentPassing ] [ 3 ] .
76+ PowerShell 7.2 introduced a new experimental feature ` PSNativeCommandArgumentPassing ` that improved
77+ native command handling. For more information, see [ ` $PSNativeCommandArgumentPassing ` ] [ 3 ] .
7878
7979### Handling output and errors
8080
@@ -97,9 +97,9 @@ Many native commands write to **stderr** as an alternative stream for additional
9797behavior can cause confusion in PowerShell when looking through errors and the additional output
9898information can be lost if ` $ErrorActionPreference ` is set to a state that mutes the output.
9999
100- PowerShell 7.3 added a new experimental feature ` PSnativeCommandErrorActionPreference ` that allows
100+ PowerShell 7.3 added a new experimental feature ` PSNativeCommandErrorActionPreference ` that allows
101101you to control whether output to ` stderr ` is treated as an error. For more information, see
102- [ PSnativeCommandErrorActionPreference ] [ 6 ] .
102+ [ ` $PSNativeCommandUseErrorActionPreference ` ] [ 6 ] .
103103
104104## Running PowerShell commands
105105
@@ -154,10 +154,10 @@ For more information, see [Invoke-Item][9].
154154<!-- link references -->
155155[ 1 ] : /powershell/module/microsoft.powershell.core/about/about_parsing#passing-arguments-to-native
156156[ 2 ] : /powershell/module/microsoft.powershell.core/about/about_quoting_rules
157- [ 3 ] : ../experimental-features.md #psnativecommandargumentpassing
157+ [ 3 ] : /powershell/module/microsoft.powershell.core/about/about_preference_variables #psnativecommandargumentpassing
158158[ 4 ] : /powershell/module/microsoft.powershell.core/about/about_redirection
159159[ 5 ] : /powershell/module/microsoft.powershell.core/about/about_output_streams
160- [ 6 ] : ../experimental-features.md#psnativecommanderroractionpreference
160+ [ 6 ] : /powershell/module/microsoft.powershell.core/about/about_preference_variables#psnativecommanduseerroractionpreference
161161[ 7 ] : /powershell/module/microsoft.powershell.core/about/about_operators#call-operator-
162162[ 8 ] : /powershell/module/microsoft.powershell.management/start-process
163163[ 9 ] : /powershell/module/microsoft.powershell.management/invoke-item
0 commit comments