Battery energy storage system bidirectional pcs device