A lesser known cmdlet is get-credential , which allows one to create a credential object containing a username and password. A lot of cmdlets, that might somehow require some kind of authentication, support the credential parameter, which will use this credential object. Some examples of cmdlets that...