Since JMP did start I would focus on your script. Perhaps start with something very simple like what is below. Remember all of your outputs need to be written to a file, you will not have access to any windows or reports opened by your script.
Run this interactively first and make sure you have access to write to the file, then delete the csv file and try running it through the task scheduler:
//!
dt = New Table( "Untitled",
Add Rows( 1 ),
New Column( "test", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [1] ) )
);
dt << Save As( "C:/test.csv" )