Modify ConnectCommand to accept file path