Add 'require' support

This is my first attempt at it. Seems to work but the parameters need to be cleaned up. I was able to run a require command including the global flag.