I have below code in new.R file, which is working fine in RStudio interactive mode.
system_command <- paste("WScript", " C:/Users/OneDrive/Desktop/r