The command which I attempted to use was:
if fs.exists("<program name>") ~= then shell.run("pastebin get <pastebin code> <program name>") end
The error I got when I ran this program was "bios:339: [string "startup"]:1: unexpected symbol". I assume the unexpected symbol refers to the "~", but I am not sure. Any help would be much appreciated.