hi,
if you can run each command on the command in that order and the command do what you want,
then yes, you can use it as bash script
note: keep in mind that rclone sync can and will delete files in the dest!!!
need to be very careful about the dest directory.
since you are syncing to the root of dropbox, perhaps sync to subfolders