I used this code and it worked perfect initially. But found some issues later on with the result, that its not bringing up the same result all the time.
The Problem with the results is that the Job steps are not coming in the right order... due to which the error when the resultant scripts are applied against a environment.
The specified '@step_id' is invalid (valid are: 1..1).
Are there are any specific options that mentions that the order of the Job scripts output should be based on the Step id.
Have you faced this similiar issue. if so, did you found any solution to this...