ActionsTest.psm1
<#
_____ __ .__ ___________ __ / _ \ _____/ |_|__| ____ ____ _____\__ ___/___ _______/ |_ / /_\ \_/ ___\ __\ |/ _ \ / \ / ___/ | |_/ __ \ / ___/\ __\ / | \ \___| | | ( <_> ) | \\___ \ | |\ ___/ \___ \ | | \____|__ /\___ >__| |__|\____/|___| /____ > |____| \___ >____ > |__| \/ \/ \/ \/ \/ \/ #> <# - Function: Test-1 #> function Test-1 { <# .SYNOPSIS Test-1 .DESCRIPTION Test-1 .PARAMETER Name Name .EXAMPLE Test-1 -Name 'General Kenobi' .INPUTS System.String .OUTPUTS System.String #> [CmdletBinding()] param ( [parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] [String]$Name ) Write-Output "Hello there $Name" } <# - Function: Test-2 #> function Test-2 { <# .SYNOPSIS Test-2 .DESCRIPTION Test-2 .PARAMETER Name Name .EXAMPLE Test-2 -Name 'General Kenobi' .INPUTS System.String .OUTPUTS System.String #> [CmdletBinding()] param ( [parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] [String]$Name ) Write-Output "$Name you are a bold one" } <# - Function: Test-3 #> function Test-3 { <# .SYNOPSIS Test-3 .DESCRIPTION Test-3 .PARAMETER Name Name .EXAMPLE Test-3 -Name 'General Kenobi' .INPUTS System.String .OUTPUTS System.String #> [CmdletBinding()] param ( [parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] [String]$Name ) Write-Output "$Name you served my father in the clone wars" } <# - Function: Test-4 #> function Test-4 { <# .SYNOPSIS Test-4 .DESCRIPTION Test-4 .PARAMETER Name Name .EXAMPLE Test-4 -Name 'General Kenobi' .INPUTS System.String .OUTPUTS System.String #> [CmdletBinding()] param ( [parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] [String]$Name ) Write-Output "$Name you were supposed to be the chosen one!" } |