diff --git a/src/shell/scripts/omp.ps1 b/src/shell/scripts/omp.ps1 index 2a86990c..b54dc508 100644 --- a/src/shell/scripts/omp.ps1 +++ b/src/shell/scripts/omp.ps1 @@ -35,7 +35,7 @@ New-Module -Name "oh-my-posh-core" -ScriptBlock { ) if ($ExecutionContext.SessionState.LanguageMode -eq "ConstrainedLanguage") { - $standardOut = Invoke-Expression "& '$FileName' `$Arguments 2>&1" + $standardOut = Invoke-Expression "& `$FileName `$Arguments 2>&1" $standardOut -join "`n" return }