command script import

I have checked in the changes.
I will definitely try to centralize the locking code. I will keep you up to date as I make progress on this.

Thanks,

  • Enrico Granata