Below is the function i am trying to use to validate the entered credentials are correct or not
function Test-Credential { <# #Test credential fo