diff --git a/scripts/Windows/Config/PowerShell/Install.ps1 b/scripts/Windows/Config/PowerShell/Install.ps1 index 7fb1030b0..8ff0c3d92 100644 --- a/scripts/Windows/Config/PowerShell/Install.ps1 +++ b/scripts/Windows/Config/PowerShell/Install.ps1 @@ -11,5 +11,5 @@ $context.AddPowerShellProfileStatement( '# Profile Files', '$profilePath = "$PSScriptRoot/profile.d/*.ps1";', 'if (Test-Path $profilePath) {', - ' Get-Item $profilePath | Foreach-Item { . $_; };', + ' Get-Item $profilePath | ForEach-Object { . $_; };', '}') -join ([System.Environment]::NewLine));