function ConvertTo-HashtableFromJSON {
  #requires -Version 3.0
      Retrievies json file from disk and converts to hashtable.

      Reads file given as Path parameter and using ConvertTo-HashtableFromPsCustomObject converts it to a hashtable.

      .PARAMETER Path
      Path to a json file.

      ConvertTo-HashtableFromJSON -Path c:\AdminTools\somefile.json
      Will read somefile.json and convert it to custom hashtable.

      Path to a json file (string).

      Custom Hashtable.

    param ( 
             Position = 0,HelpMessage='Path to json file', 
             Mandatory = $true,   
             ValueFromPipeline = $true,  
             ValueFromPipelineByPropertyName = $true)]
         [ValidateScript({Test-Path -Path $_ -PathType 'Leaf' })]
  Begin {
    Write-Verbose -Message "Starting $($MyInvocation.MyCommand) " 
    Write-Verbose -Message 'Execution Metadata:'
    Write-Verbose -Message "User = $($env:userdomain)\$($env:USERNAME)" 
    Write-Verbose -Message "Computername = $env:COMPUTERNAME" 
    Write-Verbose -Message "Host = $($host.Name)"
    Write-Verbose -Message "PSVersion = $($PSVersionTable.PSVersion)"
    Write-Verbose -Message "Runtime = $(Get-Date)" 

    Write-Verbose -Message "[$((get-date).TimeOfDay.ToString()) BEGIN ] Starting: $($MyInvocation.Mycommand)"
    Write-Verbose -Message "[$((get-date).TimeOfDay.ToString()) PROCESS ] Processing json file {$Path}"
    $content = Get-Content -LiteralPath $path -ReadCount 0 -Raw | Out-String
    Write-Verbose -Message "[$((get-date).TimeOfDay.ToString()) PROCESS ] File read. Converting to PSCustomObject"
    $pscustomObject = ConvertFrom-Json -InputObject $content
    Write-Verbose -Message "[$((get-date).TimeOfDay.ToString()) PROCESS ] Converting from PSCustomObject to HashTable"
    $hashtable = ConvertTo-HashtableFromPsCustomObject -psCustomObject $pscustomObject
  End {
    Write-Verbose -Message "[$((get-date).TimeOfDay.ToString()) END ] Ending: $($MyInvocation.Mycommand)"
    Write-Verbose -Message "Ending $($MyInvocation.MyCommand) "