collect show_environment_variables code

Use "define" & "document" to create a new command to simplify scripts.