title: Create file with date and time stamp in Powershell
body: <p>I would like to create a file whose name is the current time.
  i've tried this code below but it's not working : </p>
  
  <pre><code>$Currentpath = split-path -parent $MyInvocation.MyCommand.Definition 
  $FileLogdate = Get-Date -format 'dd/MM/yyyy HH:mm:ss'
  Write-Host($FileLogdate) 
  
  New-Item -Path $Currentpath -Name "$FileLogdate" -ItemType "file"
  </code></pre>