replace Get-Date by Write-Output and Write-Host