Public/Invoke-Beep.ps1

Function Invoke-Beep{
<#
    .Synopsis
      Makes the computer make a beep noise
    .DESCRIPTION
      A slightly longer description,
    .PARAMETER logLevel
        explain your parameters here. Create a new .PARAMETER line for each parameter,
        
    .EXAMPLE
        THis example runs the script with a change to the logLevel parameter.
 
        .Template.ps1 -logLevel Debug
 
    .INPUTS
       What sort of pipeline inputdoes this expect?
    .OUTPUTS
       What sort of pipeline output does this output?
    .LINK
       www.google.com
    #>

[CmdletBinding(SupportsShouldProcess=$true)] 
param([Parameter(position=0)]$pitch = 500, [Parameter(position=1)]$duration = 300)

[console]::beep($pitch,$duration)
}Export-ModuleMember -Function Invoke-Beep