This script will save a previously saved document as a new PSB file (offering to overwrite an existing file if found). The new PSB file will use the same name and location as the original file.
If the document is unsaved, the save will default to PSB, using a standard dialog to select the save location and filename.
There is an optional code block that you can uncomment to prompt to permanently delete the original file if the original file was a PSD (no trash/bin/recycle bin).
/*
Default S
...