Create a script that accepts 2 numbers and an operator (+, -, *, /), and prints the result of the operation.