The best idea is not to create temp file and just run fs-uae.exe with parameters which begin from "--". You can check my Dyna Blaster launcher in
http://eab.abime.net/showthread.php?p=810993 thread. Precaisly in this post:
http://eab.abime.net/showpost.php?p=...&postcount=190