{"id":15040,"date":"2018-06-05T06:00:01","date_gmt":"2018-06-05T13:00:01","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=15040"},"modified":"2018-06-18T15:25:09","modified_gmt":"2018-06-18T22:25:09","slug":"powershell-helpwriter-2018-create-a-single-function-help-file","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2018\/06\/05\/powershell-helpwriter-2018-create-a-single-function-help-file\/","title":{"rendered":"PowerShell HelpWriter 2018: Create a Single Function Help File"},"content":{"rendered":"<p><a href=\"https:\/\/www.sapien.com\/software\/powershell_helpwriter\" target=\"_blank\" rel=\"noopener\">PowerShell HelpWriter<\/a>&#x2122; is an essential application to have in your toolbox, especially when working with existing scripts, functions, or modules. Eventually, your scripts will be shared or given to someone else to maintain, and no one wants to inherit a script that is hard to follow or difficult to understand.<\/p>\n<p>Including Help documentation with your scripts is a best practice that takes very little time to do, and demonstrates your quality of work to your IT peers. In this blog post we will show you how to create a PowerShell XML Help file and add it to a script.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_00_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15050\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_00_2018-05-30_20-10-37-300x67.jpg\" alt=\"\" width=\"734\" height=\"164\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_00_2018-05-30_20-10-37-300x67.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_00_2018-05-30_20-10-37.jpg 605w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<h3>Ease Of Use<\/h3>\n<p>PowerShell HelpWriter has the ability to build an XML Powershell Help file that can be included in a script file.<\/p>\n<p>You can start using the tool as soon as you open the application\u2014it&#8217;s as easy as filling in the blanks.<\/p>\n<p>Use the application <em>Menu<\/em>, or both the <em>Navigation<\/em>\u00a0panel and the <em>Designer<\/em>\u00a0panel to build the Help file.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_03_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15051\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_03_2018-05-30_20-10-37-300x207.jpg\" alt=\"\" width=\"774\" height=\"534\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_03_2018-05-30_20-10-37-300x207.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_03_2018-05-30_20-10-37-768x529.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_03_2018-05-30_20-10-37-1024x706.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_03_2018-05-30_20-10-37-848x584.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_03_2018-05-30_20-10-37.jpg 1615w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><\/a><\/p>\n<p>When the Help file is complete, the XML file can be validated before being implemented in the script file.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_04_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15052\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_04_2018-05-30_20-10-37-300x48.jpg\" alt=\"\" width=\"775\" height=\"124\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_04_2018-05-30_20-10-37-300x48.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_04_2018-05-30_20-10-37-768x123.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_04_2018-05-30_20-10-37-1024x164.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_04_2018-05-30_20-10-37-848x135.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_04_2018-05-30_20-10-37.jpg 1615w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/a><\/p>\n<h3>Create a Help File<\/h3>\n<p>We are going to create a new Help file for an existing function called\u00a0<strong>Get-MySQLServices<\/strong>.<\/p>\n<p>On the <em>File<\/em> menu, click on <em>New<\/em>\u00a0then select <em>New Help File<\/em>. This will open an empty <strong>New-Cmdlet<\/strong>\u00a0Help file.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_01_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15048\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_01_2018-05-30_20-10-37-300x62.jpg\" alt=\"\" width=\"861\" height=\"178\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_01_2018-05-30_20-10-37-300x62.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_01_2018-05-30_20-10-37-768x158.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_01_2018-05-30_20-10-37-1024x211.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_01_2018-05-30_20-10-37-848x175.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_01_2018-05-30_20-10-37.jpg 1261w\" sizes=\"auto, (max-width: 861px) 100vw, 861px\" \/><\/a><\/p>\n<p>We will change the name from <strong>New-Cmdlet<\/strong>\u00a0to <strong>Get-MySQLServices<\/strong>\u00a0and start to fill in the information in the <em>Synopsis<\/em>\u00a0and <em>Detailed Description<\/em>\u00a0sections.<\/p>\n<p>The <em>Synopsis<\/em>\u00a0is a short description about the function and the <em>Detailed Description<\/em>\u00a0explains more about the function.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_02_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15049\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_02_2018-05-30_20-10-37-300x60.jpg\" alt=\"\" width=\"860\" height=\"172\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_02_2018-05-30_20-10-37-300x60.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_02_2018-05-30_20-10-37-768x153.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_02_2018-05-30_20-10-37-1024x204.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_02_2018-05-30_20-10-37-848x169.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_02_2018-05-30_20-10-37.jpg 1264w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<h4>Adding Syntax and Parameters<\/h4>\n<p>In the <em>Syntax<\/em>\u00a0and <em>Parameters<\/em>\u00a0sections we will configure how the function will work and what parameters are going to be used by the function.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_05_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15054\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_05_2018-05-30_20-10-37-300x44.jpg\" alt=\"\" width=\"859\" height=\"126\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_05_2018-05-30_20-10-37-300x44.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_05_2018-05-30_20-10-37-768x112.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_05_2018-05-30_20-10-37-1024x149.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_05_2018-05-30_20-10-37-848x123.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_05_2018-05-30_20-10-37.jpg 1264w\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/a><\/p>\n<p>First, we need to add all of the parameters used by this function in the <em>Parameters<\/em>\u00a0section. To start adding parameters click on the <em>Add New Parameter<\/em>\u00a0button.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_06_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15055\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_06_2018-05-30_20-10-37-300x102.jpg\" alt=\"\" width=\"300\" height=\"102\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_06_2018-05-30_20-10-37-300x102.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_06_2018-05-30_20-10-37.jpg 490w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><em>Parameter1<\/em>\u00a0will be added first, then we will rename it to\u00a0<em>Status<\/em>.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_07a_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15056\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_07a_2018-05-30_20-10-37.jpg\" alt=\"\" width=\"233\" height=\"97\" \/><\/a>\u00a0<a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_07b_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15057\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_07b_2018-05-30_20-10-37.jpg\" alt=\"\" width=\"238\" height=\"95\" \/><\/a><\/p>\n<p>Next we will update the properties for each parameter by clicking on the &#8220;tool&#8221; icon next to the parameter name.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_09_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15064\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_09_2018-05-30_20-10-37-300x111.jpg\" alt=\"\" width=\"300\" height=\"111\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_09_2018-05-30_20-10-37-300x111.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_09_2018-05-30_20-10-37.jpg 380w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The following parameter properties can be modified in the <em>Parameters<\/em>\u00a0tool editor:<\/p>\n<ul>\n<li>Description<\/li>\n<li>Default Value<\/li>\n<li>Aliases<\/li>\n<li>Accept Wildcard Characters<\/li>\n<li>Dynamic<\/li>\n<li>Value Required<\/li>\n<li>Accepted Values<\/li>\n<\/ul>\n<p>In this case we are working with the <em>Status<\/em>\u00a0parameter properties.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_08_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15062\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_08_2018-05-30_20-10-37-300x186.jpg\" alt=\"\" width=\"682\" height=\"423\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_08_2018-05-30_20-10-37-300x186.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_08_2018-05-30_20-10-37-768x476.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_08_2018-05-30_20-10-37-848x526.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_08_2018-05-30_20-10-37.jpg 892w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/a><\/p>\n<p>Keep in mind this is just for the Help file and will not effect the existing function script file.<\/p>\n<p>After adding all of the function parameters we need to go back to the <em>Syntax<\/em>\u00a0section and add a parameter set to configure how the function will be used with the assigned parameters. We will add\u00a0<em>Parameter Set 1<\/em>.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15066\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10_2018-05-30_20-10-37-300x92.jpg\" alt=\"\" width=\"447\" height=\"137\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10_2018-05-30_20-10-37-300x92.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10_2018-05-30_20-10-37.jpg 574w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10a_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15067\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10a_2018-05-30_20-10-37-300x58.jpg\" alt=\"\" width=\"678\" height=\"131\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10a_2018-05-30_20-10-37-300x58.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10a_2018-05-30_20-10-37-768x149.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10a_2018-05-30_20-10-37-848x165.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10a_2018-05-30_20-10-37.jpg 894w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/a><\/p>\n<h4>Creating Parameter Sets<\/h4>\n<p>When clicking on the <em>Parameter Set 1<\/em>\u00a0checkbox you&#8217;ll notice that the <em>Parameters<\/em>\u00a0field is empty. And, No! We haven&#8217;t lost any of the parameters we previously added.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10b_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15068\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10b_2018-05-30_20-10-37-300x69.jpg\" alt=\"\" width=\"678\" height=\"156\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10b_2018-05-30_20-10-37-300x69.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10b_2018-05-30_20-10-37-768x177.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10b_2018-05-30_20-10-37-848x195.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10b_2018-05-30_20-10-37.jpg 890w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/a><\/p>\n<p>Next we will add the parameters that we previously loaded in the <em>Parameters<\/em>\u00a0section to the <em>Parameter Set 1<\/em>\u00a0field.<\/p>\n<p>To add a loaded parameter: In the\u00a0<em>Parameters<\/em> section under\u00a0<em>Parameter Set 1<\/em>, click on <em>Add Parameters<\/em>\u00a0or right-click on the parameter field.\u00a0 In the drop-down menu, select\u00a0<em>Status<\/em>.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10d_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15070\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10d_2018-05-30_20-10-37-300x66.jpg\" alt=\"\" width=\"674\" height=\"148\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10d_2018-05-30_20-10-37-300x66.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10d_2018-05-30_20-10-37-768x168.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10d_2018-05-30_20-10-37-848x185.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10d_2018-05-30_20-10-37.jpg 887w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10c_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15069\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10c_2018-05-30_20-10-37-300x106.jpg\" alt=\"\" width=\"300\" height=\"106\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10c_2018-05-30_20-10-37-300x106.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10c_2018-05-30_20-10-37.jpg 367w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Remember, you can build a function script that can be executed in a number of ways. This is why we can add a <em>Parameter Set<\/em>\u00a0for each way the function can be executed.<\/p>\n<p>We will finish configuring the properties for the <em>Status<\/em>\u00a0parameter to be use in <em>Parameter Set 1<\/em>\u00a0by going back into the\u00a0<em>Parameters<\/em> tool editor pane. Now we can change some properties that were not enabled when we initially added the parameter:<\/p>\n<ul>\n<li>Position<\/li>\n<li>Input Pipeline<\/li>\n<li>Required<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10g_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15072\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10g_2018-05-30_20-10-37-300x184.jpg\" alt=\"\" width=\"685\" height=\"420\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10g_2018-05-30_20-10-37-300x184.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10g_2018-05-30_20-10-37-768x472.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10g_2018-05-30_20-10-37-848x521.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_10g_2018-05-30_20-10-37.jpg 892w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/a><\/p>\n<p>After the changes are done for the parameter set they are displayed in <em>Syntax | (All Parameters)*<\/em><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_11_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15073\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_11_2018-05-30_20-10-37-300x56.jpg\" alt=\"\" width=\"831\" height=\"155\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_11_2018-05-30_20-10-37-300x56.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_11_2018-05-30_20-10-37-768x144.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_11_2018-05-30_20-10-37-1024x192.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_11_2018-05-30_20-10-37-848x159.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_11_2018-05-30_20-10-37.jpg 1270w\" sizes=\"auto, (max-width: 831px) 100vw, 831px\" \/><\/a><\/p>\n<p>*<em>Note: To Add\/Update\/Delete parameters simply click on the selected &#8220;Parameter Set x&#8221;, then select either &#8220;X&#8221; to delete or select &#8220;Add New Parameter&#8221;.<\/em><\/p>\n<h4>Adding Examples<\/h4>\n<p>In the <em>Examples<\/em>\u00a0section we can add examples of how the function is going to be executed with the parameters.<\/p>\n<ul>\n<li>Click on A<em>dd Example<\/em>\u00a0or right-click on the <em>Example<\/em>\u00a0field.\n<ul>\n<li>\u00a0<a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_20_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15094\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_20_2018-05-30_20-10-37-300x81.jpg\" alt=\"\" width=\"300\" height=\"81\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_20_2018-05-30_20-10-37-300x81.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_20_2018-05-30_20-10-37.jpg 513w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<li>To edit the new line (<em>Example x<\/em>), click on the <em>&#8220;tool<\/em>&#8221; icon to add the example code.\n<ul>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_21_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15095\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_21_2018-05-30_20-10-37-300x91.jpg\" alt=\"\" width=\"300\" height=\"91\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_21_2018-05-30_20-10-37-300x91.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_21_2018-05-30_20-10-37.jpg 523w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>There are three fields\u00a0used to add Help information about the function: <em>Introduction<\/em>, <em>Command<\/em>,\u00a0and\u00a0<em>Remarks<\/em>.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_22_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15096\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_22_2018-05-30_20-10-37-300x114.jpg\" alt=\"\" width=\"695\" height=\"264\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_22_2018-05-30_20-10-37-300x114.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_22_2018-05-30_20-10-37-768x291.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_22_2018-05-30_20-10-37-848x321.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_22_2018-05-30_20-10-37.jpg 893w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/a><\/p>\n<p>In the <em>Introduction<\/em>\u00a0field, type either a DOS prompt &#8220;<em>PS C:\\&gt;<\/em>&#8221; or a Bash prompt &#8220;<em>PS \/home\/user1&gt;<\/em>&#8220;.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_23_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15097\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_23_2018-05-30_20-10-37-300x32.jpg\" alt=\"\" width=\"609\" height=\"65\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_23_2018-05-30_20-10-37-300x32.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_23_2018-05-30_20-10-37-768x83.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_23_2018-05-30_20-10-37-1024x110.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_23_2018-05-30_20-10-37-848x91.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_23_2018-05-30_20-10-37.jpg 1039w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/a><\/p>\n<p>In the <em>Command<\/em>\u00a0field, type the command one-liner example.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_24_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15098\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_24_2018-05-30_20-10-37-300x34.jpg\" alt=\"\" width=\"609\" height=\"69\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_24_2018-05-30_20-10-37-300x34.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_24_2018-05-30_20-10-37-768x88.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_24_2018-05-30_20-10-37-1024x117.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_24_2018-05-30_20-10-37-848x97.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_24_2018-05-30_20-10-37.jpg 1034w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/a><\/p>\n<p>In the <em>Remarks<\/em>\u00a0field, add any additional comments about the example.*<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_25_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15099\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_25_2018-05-30_20-10-37-300x36.jpg\" alt=\"\" width=\"608\" height=\"73\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_25_2018-05-30_20-10-37-300x36.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_25_2018-05-30_20-10-37-768x93.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_25_2018-05-30_20-10-37-1024x124.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_25_2018-05-30_20-10-37-848x103.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_25_2018-05-30_20-10-37.jpg 1033w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/a><\/p>\n<p><em>*Note: Make sure to press enter at the end of the Remark.\u00a0<\/em><\/p>\n<h4>Adding Notes<\/h4>\n<p>You can add any additional notes\u00a0about the function in the <em>Notes<\/em>\u00a0section. You can add titles for every Remark you want to add or edit.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_26_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15101\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_26_2018-05-30_20-10-37-300x75.jpg\" alt=\"\" width=\"300\" height=\"75\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_26_2018-05-30_20-10-37-300x75.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_26_2018-05-30_20-10-37.jpg 518w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\u00a0<a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_27_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15102\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_27_2018-05-30_20-10-37-300x76.jpg\" alt=\"\" width=\"300\" height=\"76\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_27_2018-05-30_20-10-37-300x76.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_27_2018-05-30_20-10-37.jpg 520w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_28_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15103\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_28_2018-05-30_20-10-37-300x63.jpg\" alt=\"\" width=\"605\" height=\"127\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_28_2018-05-30_20-10-37-300x63.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_28_2018-05-30_20-10-37-768x162.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_28_2018-05-30_20-10-37-848x178.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_28_2018-05-30_20-10-37.jpg 889w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/a><\/p>\n<h4>Identify Input and Output<\/h4>\n<p><em>Input Types<\/em>\u00a0and <em>Output Types<\/em>\u00a0is where you document what types of variable the function is accepting and what output is being returned when the function is completed.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15079\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14_2018-05-30_20-10-37-300x19.jpg\" alt=\"\" width=\"837\" height=\"53\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14_2018-05-30_20-10-37-300x19.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14_2018-05-30_20-10-37-768x49.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14_2018-05-30_20-10-37-1024x66.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14_2018-05-30_20-10-37-848x54.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14_2018-05-30_20-10-37.jpg 1261w\" sizes=\"auto, (max-width: 837px) 100vw, 837px\" \/><\/a><\/p>\n<p>In <em>Input Types<\/em>\u00a0we add a &#8220;<em>String<\/em>&#8221; type input variable. Click on the <em>&#8220;tool<\/em>&#8221; icon next to the name and select <em>Add Type<\/em>\u00a0to add the object type &#8220;<em>String<\/em>&#8221; in the <em>Name<\/em>\u00a0field.\u00a0 Include additional information about the Input object variable in the <em>Description<\/em> field.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14a_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15077\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14a_2018-05-30_20-10-37-300x85.jpg\" alt=\"\" width=\"300\" height=\"85\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14a_2018-05-30_20-10-37-300x85.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14a_2018-05-30_20-10-37.jpg 454w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14bv_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15078\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14bv_2018-05-30_20-10-37-300x84.jpg\" alt=\"\" width=\"743\" height=\"208\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14bv_2018-05-30_20-10-37-300x84.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14bv_2018-05-30_20-10-37-768x215.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14bv_2018-05-30_20-10-37-848x238.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14bv_2018-05-30_20-10-37.jpg 891w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/a><\/p>\n<p>In <em>Output Types<\/em>\u00a0we add a &#8220;<em>PSobject<\/em>&#8221; type output variable. Click on the <em>&#8220;tool<\/em>&#8221; icon next to the name and select <em>Add Type<\/em>\u00a0to add the object type &#8220;<em>PSobject<\/em>&#8221; in the <em>Name<\/em> field.\u00a0 Include additional information about the Output object variable in the <em>Description<\/em> field.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14c_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15080\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14c_2018-05-30_20-10-37-300x89.jpg\" alt=\"\" width=\"300\" height=\"89\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14c_2018-05-30_20-10-37-300x89.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14c_2018-05-30_20-10-37.jpg 447w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14d_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15083\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14d_2018-05-30_20-10-37-300x82.jpg\" alt=\"\" width=\"746\" height=\"204\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14d_2018-05-30_20-10-37-300x82.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14d_2018-05-30_20-10-37-768x211.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14d_2018-05-30_20-10-37-848x233.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_14d_2018-05-30_20-10-37.jpg 891w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/a><\/p>\n<h4>Add Resource Link<\/h4>\n<p><em>Links<\/em> is an optional section where you can provide a URL link to a Microsoft document, or perhaps a link to a blog post related to the custom function.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_15_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15084\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_15_2018-05-30_20-10-37-300x24.jpg\" alt=\"\" width=\"850\" height=\"68\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_15_2018-05-30_20-10-37-300x24.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_15_2018-05-30_20-10-37-768x62.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_15_2018-05-30_20-10-37-1024x83.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_15_2018-05-30_20-10-37-848x69.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_15_2018-05-30_20-10-37.jpg 1261w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/a><\/p>\n<h3>Validate and Preview<\/h3>\n<p>We will save the file as <strong>Get-MySQLServices-Help.xml<\/strong>.<\/p>\n<p>After the Help file has been saved we will <em>Validate Help Schema<\/em>\u00a0to check for errors and <em>Preview<\/em>\u00a0the file.*<\/p>\n<p>The validation result will display in the <em>Output<\/em>\u00a0pane at the bottom of the designer. If there are no errors this message will display: <em>Validation Status (Errors: 0, Warnings: 0): PASSED<\/em>.<\/p>\n<p><em>*Note: Make sure to save changes and validate the schema before previewing the Help file.<\/em><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_16_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15085\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_16_2018-05-30_20-10-37-300x81.jpg\" alt=\"\" width=\"870\" height=\"235\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_16_2018-05-30_20-10-37-300x81.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_16_2018-05-30_20-10-37-768x206.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_16_2018-05-30_20-10-37-1024x275.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_16_2018-05-30_20-10-37-848x228.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_16_2018-05-30_20-10-37.jpg 1608w\" sizes=\"auto, (max-width: 870px) 100vw, 870px\" \/><\/a><\/p>\n<p>Although the Help file can be previewed at any time, it is a good idea to <em>Save<\/em>, <em>Validate<\/em>, and <em>Preview<\/em> the file while building the file.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_17_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15087\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_17_2018-05-30_20-10-37-300x281.jpg\" alt=\"\" width=\"382\" height=\"358\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_17_2018-05-30_20-10-37-300x281.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_17_2018-05-30_20-10-37-768x721.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_17_2018-05-30_20-10-37-848x796.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_17_2018-05-30_20-10-37.jpg 1019w\" sizes=\"auto, (max-width: 382px) 100vw, 382px\" \/><\/a><\/p>\n<h3>Add Help File to the Script<\/h3>\n<p>Next we will open the script function <strong>Get-MySQLServices<\/strong>\u00a0in PowerShell Studio to add the Help file\u00a0<strong>Get-MySQLServices-Help.xml<\/strong>.<\/p>\n<p>In order to add the Help XML file to the script, we need to add the &#8221;\u00a0<em># .EXTERNALHELP &lt;HelpXMLfileLocation&gt;<\/em> &#8221; line inside the function:<\/p>\n<blockquote><p>function Get-MyMSQLServices{<br \/>\n# .EXTERNALHELP C:\\Users\\user01\\Documents\\SAPIEN\\Help Files\\Get-MySQLServices-Help.xml<\/p>\n<p>Param(..)<br \/>\n: code here&#8230;<\/p>\n<p>}<\/p><\/blockquote>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_18_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15089\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_18_2018-05-30_20-10-37-300x140.jpg\" alt=\"\" width=\"731\" height=\"341\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_18_2018-05-30_20-10-37-300x140.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_18_2018-05-30_20-10-37-768x358.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_18_2018-05-30_20-10-37-1024x477.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_18_2018-05-30_20-10-37-848x395.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_18_2018-05-30_20-10-37.jpg 1259w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/a><\/p>\n<p>After this line has been added to the script function we load the function in PowerShell. Then we can view the function Help information by executing the following:<\/p>\n<blockquote><p>## &#8211; Display help detailed information:<br \/>\nGet-Help Get-MySQLServices -Detailed<\/p>\n<p>## &#8211; Or, Display Help in popup windows:<br \/>\nGet-Help Get-MySQLServices -ShowWindow<\/p><\/blockquote>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19a_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15090\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19a_2018-05-30_20-10-37-300x275.jpg\" alt=\"\" width=\"300\" height=\"275\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19a_2018-05-30_20-10-37-300x275.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19a_2018-05-30_20-10-37-768x705.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19a_2018-05-30_20-10-37-848x778.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19a_2018-05-30_20-10-37.jpg 981w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19b_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15091\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19b_2018-05-30_20-10-37-300x275.jpg\" alt=\"\" width=\"300\" height=\"275\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19b_2018-05-30_20-10-37-300x275.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19b_2018-05-30_20-10-37-768x705.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19b_2018-05-30_20-10-37-848x778.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19b_2018-05-30_20-10-37.jpg 981w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19c_2018-05-30_20-10-37.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15092\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19c_2018-05-30_20-10-37-300x275.jpg\" alt=\"\" width=\"300\" height=\"275\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19c_2018-05-30_20-10-37-300x275.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19c_2018-05-30_20-10-37-768x705.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19c_2018-05-30_20-10-37-848x778.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/05\/HW2018_19c_2018-05-30_20-10-37.jpg 981w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h3>Help Your IT Peers<\/h3>\n<p>As you continue to build your PowerShell scripting skills, PowerShell HelpWriter 2018&#x2122; is a must have tool for properly documenting your scripts. In addition to helping your IT peers understand how your scripts, functions, and modules work, taking the time to include a Help file before deploying your script to production is clearly a Best Practice.<\/p>\n<p><em>Comment Based Help<\/em> is always an option but if you want to exponentially speed up the documentation process and make Help file updates on-the-fly\u2014<a href=\"https:\/\/www.sapien.com\/software\/powershell_helpwriter\">PowerShell HelpWriter<\/a> is the answer.<\/p>\n<h3>Instructional Video<\/h3>\n<p>Check out the video demonstration on our YouTube channel! <a href=\"https:\/\/youtu.be\/tro_GwGm40Q\" target=\"_blank\" rel=\"noopener\">PowerShell HelpWriter 2018 &#8211; Building a Single Function Help File<\/a><\/p>\n<h3>Related Articles<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2018\/02\/08\/powershell-helpwriter-2018-released\/\">PowerShell HelpWriter 2018: Released!<\/a><\/li>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2017\/01\/17\/powershell-helpwriter-2017-what-new-part-1\/\">PowerShell HelpWriter 2017: What\u2019s New? (Part 1)<\/a><\/li>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2017\/01\/24\/powershell-helpwriter-2017-whats-new-part-2\/\">PowerShell HelpWriter 2017: What\u2019s New? (Part 2)<\/a><\/li>\n<\/ul>\n<h3>Feedback<\/h3>\n<p>As always, if you have any ideas, comments, or feedback, please\u00a0<a href=\"https:\/\/www.sapien.com\/forums\/viewforum.php?f=23\">visit our feedback forum<\/a>\u00a0and reference this post.<\/p>\n<p>&nbsp;<\/p>\n<p><em>Max Trinidad is a Technology Evangelist at SAPIEN Technologies Inc., and a Microsoft PowerShell MVP. You can reach him at\u00a0<a href=\"mailto:maxt@sapien.com\">maxt@sapien.com<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PowerShell HelpWriter&#x2122; is an essential application to have in your toolbox, especially when working with existing scripts, functions, or modules. Eventually, your scripts will be shared or given to someone else to maintain, and no one wants to inherit a script that is hard to follow or difficult to understand. Including Help documentation with your [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1115,1143,1238,952,1239,25],"tags":[28,1215,966,953],"class_list":["post-15040","post","type-post","status-publish","format-standard","hentry","category-bash","category-powershell","category-powershell-core","category-powershell-help-writer","category-pscore6","category-windows-powershell","tag-powershell","tag-powershell-core","tag-powershell-help","tag-powershell-help-writer"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/15040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=15040"}],"version-history":[{"count":51,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/15040\/revisions"}],"predecessor-version":[{"id":15223,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/15040\/revisions\/15223"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=15040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=15040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=15040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}