my $pid = open CMD, '| cmd /k' or die $!; print CMD 'cd c:\PerlExamples'; print CMD 'python Pyscript.py server=server_name.com'; print CMD 'test=$test_name,$file_name'; ...