API:InspectUnit

Shows the equipment and personal note frame. InspectUnit

Arguments
target, party1, raid1, player ...

Example
/script InspectUnit("target");

Shows the equipment and personal note frame of your current target, but only when hes near you.