I've faced the same challenge when working across different platforms. Shell scripting on Windows is tricky, and mixing Bash, PowerShell, and batch files gets messy fast. One approach that worked well for me is using a cross-platform automation tool that abstracts away OS-specific quirks. For example, I’ve been using CloudRay to automate server tasks and script execution consistently across Windows, Mac, and Linux without worrying about compatibility issues.
CloudRay lets you manage your cloud servers using Bash scripts in a secure, centralised platform