Can't specify installation location on Windows powershell installer

I’ve attempted to install miniconda using the Windows installer through powershell. I’m using this script to install in silent mode with the attempt to install in C:\Program Files\Miniconda. I’ve also tried other various installation locations (including the Users folder, etc.).

$params = "/InstallationType=AllUsers","/S","/D=%ProgramFiles%\Miniconda"
Start-Process -FilePath "$fileLocation" -Wait -PassThru -ArgumentList $params

I’ve tried changing the %ProgramFiles% to the full path, with and without quotes, etc. and nothing has changed. It is always installing in C:\ProgramData\miniforge3 no matter what is provided. How can I either change the install location, or move the install location after the installation?

Thank you!