How do I create a macro to shutdown the computer after an inputted number of minutes?

Yes, just type the variable name into the Pause field. If it is in minutes, type in:

Variable Name * 60

See Text Fields in Keyboard Maestro