Getting attributes via cmdlet