Add common command utils and create static method to get perforce connection rom main module