You have developed a PowerShell script and you would like to share the script code with the community by posting it in a Wiki article?
If your answer is “yes”, the PowerShell script code below can help you.
When you run the script, you need to specify the full name of the PowerShell script you want to share as parameter.
The script reads your PowerShell script code and puts a “nice looking” representation of it into your clipboard.
When the script has finished, all you need to do is to click at the location in your Wiki article where you want the script code to show up, and then paste it (“Ctrl + V”).