Testing shows that PowerShell on Linux is forgiving about path separators; that is, Microsoft Windows uses the backslash (), where Linux uses a forward slash (/).
If anything outside of PowerShell (including native commands) is to be used, a correct separator should be chosen.
The Join-Path command will merge path elements using the correct separator for each platform. Manual path construction (based on merging strings) should be avoided.