diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index da4512b8..71fa2fe4 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -755,7 +755,7 @@ Use '$($PSStyle.Foreground.Magenta)Show-Help$($PSStyle.Reset)' to display this h } if (Test-Path "$PSScriptRoot\CTTcustom.ps1") { - Invoke-Expression -Command "& `"$PSScriptRoot\CTTcustom.ps1`"" + . "$PSScriptRoot\CTTcustom.ps1" } Write-Host "$($PSStyle.Foreground.Yellow)Use 'Show-Help' to display help$($PSStyle.Reset)"