When using connect-cisserver from within a scheduled task running as Active Directory domain user one can connect to vcenter without explicit providing credentials, it's automatic using the windows integrated credentials of the user running the task. Connect-CisServer does not work that way, you have to supply credentials and store them somewhere safe. This is possible but the connect-viserver way is much easier to use.