in reply to Use variable in Win32::Job to execute command line

You have used single quoting for your command, so $exe will not be interpolated.

If you re-write line 16 as:

pid = $job->spawn("cmd", qq{cmd /C $exe}, );

Then it should work