The functionresolve-relativePath of the modulefilesystem returns the relative path between a directory and a file or directory.
Thus, it improves the functionality provided by the built-in cmdlet resolve-path which only allows to get the relative path from the current directory ($pwd).
resolve-relativePath $fromDir $destPath
Note: $fromDir and $destPath must share a common prefix in order for the function to succeed.