When using the Powershell command:
Export-SPWeb $Identity -Path $Location -IncludeUserSecurity -NoFileCompression -IncludeVersions all
The script creates a folder with the $Location name, rather than a file.
I've tried explicitly writing the location, rather than use a variable, but it still does not seem to work. When writing out the $Location, it displays as it should: .../<local folder>/backup.cmp
Any advice would be appreciated.