Hi @Jonathan-Engstrom ,
I'm sorry about this, but it looks like our documentation was out of date. We just updated our documentation and this should help to answer your question. $PSCredential
now can be called in two different ways; with a username and password or by passing the resource credential name.
In order to use a resource credential within your PowerShell, you would just need to pass your resource credential name. For example:
# convert a resource credential named MyCredential to a PSCredential object
PSCall MyPowerShellScript
(
Credentials: $PSCredential(MyCredential)
);
Please let me know if this doesn't work for you.
Thanks,
Rich