- Use platform-appropriate native tools (e.g. clip.exe/pbcopy/xclip as mentioned)
- Use appropriate path separators (tip: just use / always - Windows handles it fine)
- Be mindful of case-sensitive file paths
- Use platform-appropriate newline (fixed a bug here just this morning)
- Avoid BOMs when writing files, unix doesn't like them (use [IO.File]::WriteAllText, not Out-File. Sad.)
- Need to restrict yourself to powershell cmdlets and .NET APIs that are available in the open-source version of powershell