Realised that a bash script is the less retarded way of calling system commands.