diff --git a/Invoke-AtomicRedTeam/Private/Invoke-Process.ps1 b/Invoke-AtomicRedTeam/Private/Invoke-Process.ps1 index e44165c..eba9de7 100644 --- a/Invoke-AtomicRedTeam/Private/Invoke-Process.ps1 +++ b/Invoke-AtomicRedTeam/Private/Invoke-Process.ps1 @@ -11,7 +11,7 @@ function Invoke-Process { [string]$Arguments = "", [Parameter(Mandatory = $false, Position = 2)] - [string]$WorkingDirectory = ".", + [string]$WorkingDirectory = $( if ($IsLinux -or $IsMacOS) {"/tmp" } else { $env:TEMP }), [Parameter(Mandatory = $false, Position = 3)] [Int]$TimeoutSeconds = 120