title: Input file variable?
body: <p>Since the newly deployed Scanning-Software doesn't support a &quot;Scan to print&quot;-function anymore, only a &quot;Scan to Application&quot;, I want to script something that handles the scanned files and sends them to the default printer. Using Adobe Acrobat as some kind of bridge would be okay.</p>
  <p>While searching for a solution, I found <code>Start-Process –FilePath “c:\docstoprint\doc1.pdf” –Verb Print -PassThru | %{sleep 10;$_} | kill</code>, which would suffice completely.
  However, I'd need to know the temporary file name, which I don't. My idea is to change the script so that it would print any pdf which I opened with it, and not just those in a fixed location. How would I handle this?</p>