When passing a prompt that includes spaces on a windows job, the following behavior can be seen even when the prompt value is encapsulated in double quotes...
D:\Automic\c\ntspawn "D:\Program Files\Microsoft SQL Server\sample\Binn\sqlcmd.EXE -TEST-Ppassword -12234 -b -Example -ipr798368.bat -oA798368.lis -b -w 255"
DEBUG is False
NO ENV ARGUMENTS
Argument String Array Length = 2
Argument[0] = D:\Program
Error System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
As noted the path D:\Program Files\Microsoft SQL Server\sample\Binn\sqlcmd.EXE is truncated to D:\Program when processed through ntspawn
AM 9.4.x
Caused by ntspawn defect AM-3007
Fixed in Version 9.5.+
Please upgrade to Applications Manager version 9.5 + for resolution.