Normalizes a gdal ... pipeline invocation written as a shell or powershell
script – joining line continuations, stripping comments, and collapsing
here-strings / heredocs into single tokens – then parses it with
parse_pipeline().
Usage
parse_script(
text,
shell = c("bash", "powershell"),
contract = gdalviz_contract()
)