added environmentname to get-targetresource return value