Save Specific Window Layout From AppleScript

Is there a way to save a specific window layout and specify the name you want for that layout via AppleScript (similar to what the "capture current window layout button" does in "Save/restore specific window layout" action)?

I want to be able to save specific layouts without having to open BTT and click the "capture current window layout button".

Thank you for your time.