Foreign vehicles subject to the PSVA are liable for the charge in the same way as vehicles registered in Switzerland for each day spent within the country.
This also applies even if they are only parked up and are not on the road.
Related articles:
Can I obtain a refund for the PSVA when leaving Switzerland earlier?
Incorrect vehicle details given to Swiss PSVA
Are there exemptions for the Swiss PSVA?