Adding pin/unpin in bulk actions

As an admin, I want to include a pin/unpin action in a bulk operation. Can anyone guide me on how to add this?