The server won't be able to fully recovered, not only /bin has gone, /usr/bin and /sbin have also vanished because of the script.
If the script is not supposed to be executed from the command line, then it should have something to prevent because it's extremely dangerous!! Or, at least, put it...