powershell – Unable to find -credential switch in set-service cmdlet


i want to change the startup account for a set of services.
I thought of using set-service -name “—-” -credential $credential.
but when i execute it , it is throwing an error “set-Service : A parameter cannot be found that matches parameter name ‘Credential'”

My Powershell version is 5.1.14409.1018