How to clear the Expo and React Native packager caches (Metro, Watchman, Haste)

Hello everyone :

when executing this script on a local machine it clears the ccm cache :
[__comobject]$CCMComObject = New-Object -ComObject ‘UIResource.UIResourceMgr’## Get the CacheElementIDs to delete
$CacheInfo = $CCMComObject.GetCacheInfo().GetCacheElements()## Remove cache items
ForEach ($CacheItem in $CacheInfo) {
$null = $CCMComObject.GetCacheInfo().DeleteCacheElement([string]$($CacheItem.CacheElementID))
}

but not when deploying by sccm, any suggestions or other scripts ?