adding console script auto generation for ofagent and phyagent