You can't declare a pin on 595 to be output. With proper library you may be able to hide the complex (or not so) 595 logic and simply do a digitalWrite_595(5,HIGH). It's not the point. Learning how the 595 (a general shift register) works is part of the fun.