my $executable = "C:/Users/Desktop/file.exe"; @args = ("$executable", 'input_command'); system(@args) == 0 or die "system @args failed: $?"