Pass quoted argument string to Start-Process in PowerShell

Solution 1:

How about:

Invoke-Expression "start import.exe '$($feed.FullName)'"

Solution 2:

This command works for me:

import.exe '"C:\Some Path\With\Spaces.txt"'

Make sure you nest the double quotes inside single quotes.