Private/Write-VerboseOutput.ps1

Function Write-VerboseOutput {
<#
.SYNOPSIS
    Helper function for semi-structured logging, to manage verbose output of the other functions.
#>

    [CmdletBinding()]
    Param(
        [Parameter(Position=0, Mandatory)]
        [string]$Message
    )

    $TimeStamp = Get-Date -Format s
    $CallingCommand = (Get-PSCallStack)[1].Command
    $MessageData = '{0} [{1}] : {2}' -f $TimeStamp,$CallingCommand,$Message

    Write-Verbose -Message $MessageData
}