For reference in future posts, it is best to post scripts/code in a Code Block.
For more information, see the wiki Searching the Forum for Answers section.