Key points:
A) Comment-based help (identifying the Help file for the workflow) is not supported in the workflow. Externalhelp note).
b) How to support the Get-help parameter: use. Externalhelp comments So get-help find Help topics, Help topic suggested name formats <script-module-base-name>.psm1-help.xml
c) Support Online Help: Provide an address for online help using the Helpuri attribute of the Cmdletbinding property
Example B:
1 . Include the script workflow in the Script module (. psm1) 2 . Use the XML-based cmdlet Help topic format to write a Help topic for a script workflow 3. Add. The EXTERNALHELP comment that specifies the name of the XML-based cmdlet Help topic for the workflow (. EXTERNALHELP Note For more information, see HTTP://GO.MICROSOFT.COM/FWLINK/?LINKID=144309)
<script-module-base-name>.psm1-help.xml Workflow new-package{... } Workflow set-package{... }
Example C:
#. Externalhelp <script-module-base-name>.psm1-help.xmlworkflow new-package{ [CmdletBinding (HelpURI= "http ://www.baidu.com ")] Param ([Parameter] $ServerName) ... }
PowerShell Workflow learning + scripting Workflow Help