diff --git a/images/win/scripts/Tests/CLI.Tools.Tests.ps1 b/images/win/scripts/Tests/CLI.Tools.Tests.ps1 index c508c4d72..cbf5d38c6 100644 --- a/images/win/scripts/Tests/CLI.Tools.Tests.ps1 +++ b/images/win/scripts/Tests/CLI.Tools.Tests.ps1 @@ -24,7 +24,7 @@ Describe "AWS" { } It "Session Manager Plugin for the AWS CLI" { - session-manager-plugin | Out-String | Should -Match "plugin was installed successfully" + @(session-manager-plugin) -Match '\S' | Out-String | Should -Match "plugin was installed successfully" } It "AWS SAM CLI" {