Introduced executeGenericPrePostCommand() which will execute a command with