May take some special handling if the apostrophe is really needed.
https://devblogs.microsoft.com/scripting/how-can-i-connect-to-a-folder-when-theres-an-apostrophe-in-the-folder-name/
--please don't forget to Accept as answer if the reply is helpful--