Windows environment variables can be used (read-only) in Macro Toolworks / Perfect Keyboard commands the same as native variables. For example, this macro inserts Windows %USERNAME% variable to an application: