title: how to turn a long, script-like line into a single line?
body: <p>I'm trying to convert the below command to a single line, but to no avail. I've tried putting more apsas, braces, square brackets, but nothing.</p>
  <pre><code>$PBIFolder = Get-ChildItem -Path &quot;$env:AllUsersProfile\Package Cache\&quot; -Filter &quot;PBIDesktopSetup_x64.exe&quot; -Recurse
  $PBISetup = $env:SystemDrive+$PBIFolder.PSParentPath.Split(':')[3]+&quot;\PBIDesktopSetup_x64.exe&quot;
  Start-Process $PBISetup '/uninstall /quiet' -Wait
  </code></pre>
  <p>I tried this way but without success</p>
  <pre><code>powershell.exe -noprofile -noninteractive -command ($PBIFolder = Get-ChildItem -Path &quot;$env:AllUsersProfile\Package Cache\&quot; -Filter &quot;PBIDesktopSetup_x64.exe&quot; -Recurse; $PBISetup = $env:SystemDrive+$PBIFolder.PSParentPath.Split(':')[3]+&quot;\PBIDesktopSetup_x64.exe&quot;; Start-Process $PBISetup -Parameters '/uninstall /quiet' -Wait)
  </code></pre>