The following example script terminates at folder due to the space between name and number. How do I run the full string?
$path = "C:\folder1\folder 2"
Invoke-Expression "$path\DB_Migration\Migrate.exe --timeout=300 -a $path\Server\Application.Core.dll -db SqlServer -conn $connectionstring"
$path
is actually $PSScriptRoot
on a server where I cannot simply rename the folder.
Cheers