I was asked to make it possible for limited users to run a script to add a wireless network to thier system. I mapped a drive first, but ran into issues with permissions. I ended up using the following script.
If WiFi() Then
$Temp = @TempDir & "\W" & Random (100000, 999999, 1)
DirCreate ($Temp)
DirCreate ($Temp & "\SMRTNTKY")
FileInstall ("setupSNK.exe", $Temp & "\", 1)
FileInstall ("SMRTNTKY\MessageB.txt", $Temp & "\SMRTNTKY\", 1)
FileInstall ("SMRTNTKY\WSETTING.WF