Likely you are doing something wrong.
Edit: As in you are using the wrong script command(s); I really have no idea what the right script command would be.
Edit2: I think it is likely you need to use GetStringFromArray in order to convert the compiler options into a thing usable by print; but, this is just a guess.
Please state what compiler options you wish to have in the output?
Global, Project, or Target?
Tim S.