try taking the quotes off $Variable in your Insert PDF script step. You are inserting a literal string, rather than having filemaker parse the variable.
Additionally you need to use imagewin vs filewin
Creating file paths states:
And you do not have the variables named the same either. You have one as $path and the other as $variable in your example