OC-4739: OC-4748: Refactor tests to share examples across batch and powershell resource specs
Adding missing shared examples for execute, script, and windows scripts