Added RunCommand

I added the code to make RunCommand work.