I'm not getting the correct help info, when I do get-help. Using the below code. I get some info (NAME, SYNTAX) etc. But I don't see SYNOPSIS & DESCRIPTION. What I'm I doing wrong?
function add-Numbers(){
param($x, $y)
<#
.SYNOPSIS
Addition
.DESCRIPTION
Adds two numbers.
.PARAMETER x
First parameter
.PARAMETER y
Second parameter
.EXAMPLE
add-Numbers 3 5
#>
return $x + $y
}
cls
get-help add-Numbers