Are all the bdf files (or dat files as you specify in the GetFilePath command) you want to run in one directory? If so you can loop over all of them using the Dir function. The Dir function has no ability to traverse a tree recursively.
Do not forget you do need to wait for completion of the NASTRAN process or all runs will be started almost simultaneously, as the loop function is very fast. So use: