This script contains a function that gets the location of an object in the console. It will simply output the folder location on screen. To use this function make sure the following variables are set in the script:

After that the function can be called by supplying the InstanceKey.

Example (old-school Package): Get-ObjectLocation -InstanceKey "PCP00001"

For more information see: