Example:
Invoke-Generate -Template "[randomdate 1/1/1999 5/5/5555 'yyyy
2
3']"
Just outputs the command since it doesn't get recognized properly as a generator.
I think this is due to the regex being used to split, since it uses . but is not in s mode. Requires some further investigation.
Also some ideas I had for improving the parsing of templates might outright resolve this anyway.