I want to pass file as argument to:
Invoke-Sqlcmd $SqlQuery -InputFile $sqlPath
The file is located in different folder. Parent Folder -> Different Folder -> Desired File
I accessed the Parent Folder using:
$sqlPath = Split-Path -Parent $PSScriptRoot
How can I add the final part to $sqlPath? It's my frist script and I have no idea how to add \DifferentFolder\DesiredFile.sql (string?) to this variable.
Split-PathisJoin-Path.