This post is going to be the shortest of my all.
Recently, to my surprise, I found myself developing quite a lot with PowerShell, it is not that I have never written scripts, but those mostly were VBScripts.
To start off I can tell that there is a ton of examples on the World Wide Web, and I know of nine free PowerShell books, alas I had no time to read any due to very short project deadlines and when I needed a specific example the search results returned were exhaustive too often, yet incomplete.
At one of the final stages I needed to schedule to execute a PowerShell script that needed to take in a parameter in form of a file path containing spaces and yet the path to the very PS script contained spaces, too.
After fiddling a bit with the bath file I ended up with the following syntax:
Powershell "& 'D:\Documents and Settings\User.Name\My Documents\Development\PSScripts\MyPSScript.ps1'" -InputFile ""D:\Documents and Settings\User.Name\My Documents\InputFile.csv"" -NonInteractive
Note the use of the single quote denoting the path to the PS file and the double quotation marks for its parameter.