Updated with "if ($PSVersionTable) {$Host.Runspace.ThreadOptions = 'ReuseThread'} "