use warnings; use strict; die "Usage: perl_script.pl path_to_exe_file.exe" unless defined $ARGV[0]; my $file=$ARGV[0]; ## get the path to your executables from the CLI system($file); # interact with your exe #Or print "Enter your excutable path:"; chomp(my $path=); ## get path from your script system($path); # interact with your exe