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 fcf427c3..fd247596 100644 --- a/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Public/Invoke-AtomicTest.ps1 +++ b/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Public/Invoke-AtomicTest.ps1 @@ -209,7 +209,7 @@ function Invoke-AtomicTest { Write-Debug -Message 'Getting executor and build command script' - if ($ShowDetails) { + if ($ShowDetails -and ($null -ne $finalCommand)) { Write-Information -MessageData $finalCommand -Tags 'Command' } else {