// maximize the window:
obj<<Maximize Window(1)
// restore the window:
obj<<Maximize Window(0)
// minimize the window:
obj<<Minimize Window(1)
// restore the window:
obj<<Minimize Window(0)
obj << Save Script for All Objects To Data Table("My Script")