Fix built-in pre-steps insertion to avoid splitting Setup Scripts YAML blocks
#27750
+248
−1