This example shows all of the standard tokens that can be used within your scripts. Standard tokens are preset and represent both DNN tokens such as Username, Portal etc. as well as intrinsic Inject Anything tokens such as StandardFolder.
In a script you merely reference the tokens inside square brackets and when the output is generated the token is replaced with it's text equivalent.
For example, you could write a script that did something like this:
'Hi [User:DisplayName]' and it would show 'Hi Steve Thompson' (or whatever user is logged in) when output.
You can also create your own custom tokens for use in your scripts to make maintenance and customization easier.