I am wondering if execution of a bundled script could extract in another place than \users\name\AppData\Local\Temp\{00000000-0000-0000-0000-000000000000}

There was a similar thread opened by Justin045 on january 2020 but as he opened also an AV issue, the question regarding directory did not received answer.
And I also wish, if possible use a directory in another location, another partition in fact ?