Function Test-Path-withLogging { <# .SYNOPSIS Function will check the given Path for existence. .DESCRIPTION If Path doesn´t exist, Function will try to create it. You can disable the create Function by calling with "-Action "ignore"". .REQUIREMENT General PowerShell V2 .REQUIREMENT Assembly .REQUIREMENT Variables Path, PathTest .REQUIREMENT Variables preSet .REQUIREMENT Functions Write-Logfile .VERSION Number: 1.0.1.0 / Date: 17.12.2016 .PARAMETER Path Give the full Path you want to check or create. .PARAMETER Action Determine which Action you want to perform Param ( [Parameter(Mandatory=$True,HelpMessage='Give the full Path you want to check.')] [ValidateNotNullOrEmpty()] [String]$Path, [Parameter(Mandatory=$False,HelpMessage='Determine which Action you want to perform