my $pid = system(1, "cmd /c powershell gc -tail 10 -wait $logfile" );