"getStuff" configs --force=all --out out.txt -v -a
####
'D:\Documents' is not recognized as an internal or external command,
operable program or batch file.
####
while () {
chomp;
s/#.*$//; #Clear out comments
next unless $_ && $_ ne '';
m/^\s+\Q"\E(.+?)\Q"\E\s*(.*$)/;
$task = $1;
@args = split /\s+/, $2 if $2;
for (my $i = 0; $i < $#args; $i++) {
#Arguments begin with - or -- or +
if ($args[$i] =~ /^[-\+]/) {
#if this looks like an argument, and the next one
# doesn't, prepend the next thing to this one.
$args[$i] .= " " . $args[$i+1]
if $args[$i+1] =~ /^[^-\+]/;
#remove the thing from the args array.
splice @args, $i+1, 1;
}
}
system ($task, @args);
}