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

I am trying to create a macro to shutdown the computer after a number of minutes which will be prompted for. Is there any action to pause the macro for a variable number of minutes(which is inputted)?

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