Write-Log is used to write information to a log file and to the console.