Rscript parses its command line using spaces as separators. If your R string contains embedded spaces, you need to wrap it within quotes to make sure it gets sent as a complete unit to the R parser.
You also don't need to use shell
unless you specifically need features of cmd.exe
.
system("Rscript.exe -e \"write(Sys.time(), file='c:/temp/systime.txt')\"")