Hi Brian,
SAM's peak shaving dispatch option for behind-the-meter batteries attempts to dispatch the battery to reduce demand charges by discharging the battery to coincide with peak load, taking into consideration demand rates.
The REopt optimization may accomplish what you need: It runs an optimization routine outside of SAM and calculates a dispatch schedule for the battery as described under "Optimal Sizing and Dispatch from REopt" in the Battery Cell and System Help topic:
samrepo.nrelcloud.org/help/battery_storage_btm.htm. REopt also calculates an optimal battery size.
Otherwise, you can experiment with different manual dispatch schedules.
Best regards,
Paul.