sub start_ps_tail { my ( $logfile ) = @_ ; print system <<"__CMD__"; start "MONITORING $logfile" cmd /c powershell gc -tail 10 -wait $logfile __CMD__ }