November 2018
Intermediate to advanced
566 pages
17h 15m
English
Help in PowerShell is comment-based. Therefore, add the following comment block right after the function declaration:
function Start-Count { <# .SYNOPSIS This cmdlet counts seconds by accepting a from and a to value. The from value is optional. .DESCRIPTION This cmdlet is a counting function. It accepts two parameters: the TotalTime being the "to" and CurrentTime being the "from". CurrentTime defaults to 0 if not specified. .PARAMETER CurrentTime The starting point, in seconds. .PARAMETER TotalTime The stopping point, in seconds. .EXAMPLE Start-Count 10 15 .NOTES Created as a demo for PowerShell 6.0 Linux Administration Cookbook #> param ( # The current time, or the starting point [Parameter(Mandatory=$false)] [Alias("CT", ...Read now
Unlock full access