@Mario Veras , Based on my research, when a new script is deployed, script will be downloaded to the folder %ProgramFiles(x86)%\Microsoft Intune Extension\Policies\Scripts. The script will be run. When the script has run the above files will be cleaned up, so you will not find the scripts in a cache when run. But you will find the whole content of the script in the log file %ProgramData%\Microsoft\IntuneManagementExtension\logs. Find a link for the reference:
https://deploywindows.com/2018/01/11/want-to-master-troubleshooting-with-intune-and-windows-10/
Note: Non-Microsoft link, just for the reference.
That is to say, if we include any important password in the script, it will cause password leaked. It is not recommended.
Hope it can help.
If the response is helpful, please click "Accept Answer" and upvote it.
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.