diff --git a/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Public/Invoke-AtomicTest.ps1 b/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Public/Invoke-AtomicTest.ps1 index afd1c5d0..d05b1b3f 100644 --- a/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Public/Invoke-AtomicTest.ps1 +++ b/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Public/Invoke-AtomicTest.ps1 @@ -231,8 +231,10 @@ function Invoke-AtomicTest { Write-Debug -Message 'Getting executor and build command script' - if ($ShowDetails -and ($null -ne $finalCommand)) { - Write-Information -MessageData $finalCommand -Tags 'Command' + if ($ShowDetails) { + if ($null -ne $finalCommand){ + Write-Information -MessageData $finalCommand -Tags 'Command' + } } else { $startTime = get-date