Examples

The first command gets the Run As account object named RunAsAccount01 and stores the object in the $RunAsAccount variable.
The second command displays information about the Run As account stored in $RunAsAccount to the user.

The first command gets the enabled Run As account object named RunAsAccount01 and stores the object in the $RunAsAccount variable.
The second command displays information about the Run As account stored in $RunAsAccount to the user.

3: Get enabled Run As accounts that
contain a specified string in their name.

The first command gets all enabled Run As account objects that contain "Account" in their names and stores the objects in the $RunAsAccount array.
The second command displays information about the first Run As account in the $RunAsAccount array to the user. The third command displays information about the second Run As account in the $RunAsAccount array to the user.