Unfortunately, currently there is no SharePoint out of the box way or PowerShell way to hide Switch view options (All items) option from modern experience SharePoint lists.
If you want Microsoft to develop and provide such functionality, you can submit a new feedback/idea (or vote on similar ideas already available) at: SharePoint Feedback Portal
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.