Access Denied When Creating File on Tentacle

Why am I getting an access denied exception when trying to create an XML file in Powershell on a tentacle? The Tentacle is running as Local System and I tried pre, deploy, and post scripts with no luck.