New Function
Add SaveToFile function for some command result as a json format