Scripts from PolicyPak Scripts Manager are pre-stored before running in the following folder:
\ProgramData\PolicyPak\PolicyPak Scripts Manager\Temporary Scripts
During script processing time:
For instance:
If you want to change the temporary script location place you can use the ADMX settings to do it; but then you are responsible for setting the right protection on the folder and self-testing that it works as expected.
Find the setting Computer Configuration | Admin Templates Manager | PolicyPak ADMX Settings | Client-Side Extensions | Scripts Manager | Use custom location for temporary script files like what’s seen here.