Make Markup Generators
Write-MarkupWriter will create a single PowerShell function to create a single XML element, with as rich parameter binding and defaults as you would like. In this way, you can build up scripts that interact with XML with all of the parameter binding PowerShell has to offer. The -AttributeParameter and -ElementParameter will accept full parameter declarations, like [Parameter(Manadatory=$true)]$foo. These parameter declarations will become parameters on the new command, with -AttributeParameter mapping to escaped attributes, and -ElementParameter mapping to cData elements. The commandname will be set implicily to "Write-${TagName}Tag"



The name of the tag

-AttributeParameter defines the parameters that will provide values for an attribute.

-ElementParameter defines the parameters that will provide values for an element

-CommandName allows you to define a custom command name. If -CommandName is missing, the command will be named "Write-${TagName}Tag"