Hi @Sai Panat,
Thank you for posting in this community.
The object specified does not belong to a list means that SharePoint attempt to get an Item or a file (Specified by $RelativePath) that does not belong to the SPWeb.
I suggest you compare the $RelativePath on your work computer with the one in your test environment.
You can use the
Write-Host $RelativePath command to output your URL on the command line.
You can share your full PowerShell commands with me if your URLs match exactly but the problem persists. This will help me to better test your issue and most likely find out why the problem is occurring. Please be careful not to give out your private information.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.