With ArcGIS Pro 3.4 and above, you can use tasks to call versioning commands. Many of the versioning commands are embedded and can be pre-configured.
@AmirBar-Maor very helpful tasks. Suggest mentioning that the versioning workflow shown at the beginning of the video is only applicable to Traditional versioning.
@AyanPalit the versioning workflow shown in the video uses Branch versioning. You can use tasks to automate both types of versioning.