Wrap "naked" commands in a script before executing them with PTY.spawn