Hello!
Likely the issue here is Wow64 redirection. Please see Tip: Troubleshooting ActionScript Command Lines (Windows) for reference, but you’ll likely need to add the following line to the beginning of your actionscript:
action uses wow64 redirection false