Try this:

$logFile = "c:\testdir\test.log"
Shell "%comspec% /c echo @DATE @TIME > $logFile"

HTH, Martijn