Added ps_shell to unpublish inactive instances